Frontend
publishing.
Publish a frontend from Git, a folder or a ZIP. Keep build configuration, domains, delivery and release history together.
- Build command
npm run build- Output directory
dist/
Your build.
Your settings.
Use the tools already in your repository. Choose what to run and which folder to publish. StaticWeb serves the result.
Next.js needs a static export. Server-rendered pages and API routes run on a separate backend.
Read the framework guidenpm run builddist/sws deploy --prodAlready built? Publish files directly from your terminal.
A release
you can trace.
A new build doesn’t replace your working site until it is ready. See the commit behind a deployment and keep a route back to an eligible release.
Explore releasesIf the next build fails, this deployment remains the live version.
Keep your domain.
Add the DNS records provided in your workspace and follow verification. Your project has a live address while you prepare a custom domain. HTTPS is configured after the domain points correctly.
Domain setupKeep your backend.
Your browser can call an existing HTTPS API. StaticWeb serves generated frontend files; it does not execute server-side rendering, database queries or API routes inside that deployment.
Supported frameworksKnow what runs here.
Generated HTML, CSS, JavaScript, images and fonts. React, Vue, Astro, Vite and Next.js static exports work. Server rendering, databases and API routes need a separate runtime.
Read the documentation