Self-host
To self-host your app:
-
If you didn't already, define
+server.jswith your favorite server (Hono, Express, ...), or set+servertotrueto use Vike's built-in lightweight server. - Build your app for production:
$ vike buildThis generates a
dist/folder that you typically upload to your production server. - Start your app in your production server:
$ node ./dist/server/index.mjs # or Bun/Deno
We generally recommend using +server, but instead of +server you can also manually integrate a server via renderPage().