okay so it builds it but what command to start the actual production
yarn preview is not meant for production server, so what do I use
33 Replies
Project ID:
N/A
N/A
yarn start
, I believe.With vite + svelte
I generated using vite and there’s no actual start command
What do I use
you can use
http-server
to serve the built appOh can I also use express?
i mean express does have a static file server middleware, but that sure is a round about way of serving a built directory
vite serve no
serve?
node build
node?
and set up adapter-node
on sveltekit
this is not sveltekit
I use vite
i don't think
same thing
Vite
Next Generation Frontend Tooling
its using vite
No lol
wow docs
it's svelte not sveltekit
https://vitejs.dev/guide/static-deploy.html
^ this toooh static
for static deploy
we shouldnt have killed all the vite templates
thats a you not me
there still is 1
https://railway.app/template/B0Cef9
anyway
yea
it uses http-server to serve the static files
Okay I got it. Thanks for your help.