Build & deploy
Static sites
Publish the output of a site builder such as Vite, Astro or Hugo.
A static site is just files: HTML, CSS, JavaScript and images. Dadisiweb builds it once and then serves the finished files directly. There is no run command and no server process to keep alive.
Settings#
- Build command: for example
npm ci && npm run build. - Output folder: the folder your build produces. Leave it empty and we look in
dist,build,out,public,_siteand.output/public, using the first one that contains anindex.html.
If the build finishes but no index.html is found, the deployment fails with a message telling you to set the output folder.
Single-page apps#
Links such as /about that do not match a file fall back to index.html, so client-side routers (React Router, Vue Router…) work on refresh and when a link is opened directly.
Updating#
Press Redeploy or push to your branch with auto-deploy on. The new files replace the old ones in one step, so visitors never see a half-updated site.
Not for static sites#
Server code (API routes, databases, cron jobs) needs a Service project. A static site cannot run server code.