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
Percy
Percy17mo ago
Project ID: N/A
ImRopoxPro
ImRopoxPro17mo ago
N/A
root
root17mo ago
yarn start, I believe.
ImRopoxPro
ImRopoxPro17mo ago
With vite + svelte I generated using vite and there’s no actual start command
ImRopoxPro
ImRopoxPro17mo ago
ImRopoxPro
ImRopoxPro17mo ago
What do I use
Brody
Brody17mo ago
you can use http-server to serve the built app
ImRopoxPro
ImRopoxPro17mo ago
Oh can I also use express?
Brody
Brody17mo ago
i mean express does have a static file server middleware, but that sure is a round about way of serving a built directory
alex
alex17mo ago
vite serve no
ImRopoxPro
ImRopoxPro17mo ago
serve?
nebula
nebula17mo ago
node build
alex
alex17mo ago
node?
nebula
nebula17mo ago
and set up adapter-node on sveltekit
ImRopoxPro
ImRopoxPro17mo ago
loading
root
root17mo ago
this is not sveltekit
ImRopoxPro
ImRopoxPro17mo ago
I use vite
root
root17mo ago
i don't think
nebula
nebula17mo ago
same thing
alex
alex17mo ago
Vite
Next Generation Frontend Tooling
nebula
nebula17mo ago
its using vite
ImRopoxPro
ImRopoxPro17mo ago
No lol
alex
alex17mo ago
wow docs
root
root17mo ago
it's svelte not sveltekit
alex
alex17mo ago
https://vitejs.dev/guide/static-deploy.html ^ this too
nebula
nebula17mo ago
oh static
alex
alex17mo ago
for static deploy
nebula
nebula17mo ago
we shouldnt have killed all the vite templates skull
alex
alex17mo ago
thats a you not me skull
Brody
Brody17mo ago
there still is 1
Brody
Brody17mo ago
it uses http-server to serve the static files
ImRopoxPro
ImRopoxPro17mo ago
Okay I got it. Thanks for your help.