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
Percy2y ago
Project ID: N/A
ImRopoxPro
ImRopoxProOP2y ago
N/A
root
root2y ago
yarn start, I believe.
ImRopoxPro
ImRopoxProOP2y ago
With vite + svelte I generated using vite and there’s no actual start command
ImRopoxPro
ImRopoxProOP2y ago
ImRopoxPro
ImRopoxProOP2y ago
What do I use
Brody
Brody2y ago
you can use http-server to serve the built app
ImRopoxPro
ImRopoxProOP2y ago
Oh can I also use express?
Brody
Brody2y 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
alex2y ago
vite serve no
ImRopoxPro
ImRopoxProOP2y ago
serve?
nebula
nebula2y ago
node build
alex
alex2y ago
node?
nebula
nebula2y ago
and set up adapter-node on sveltekit
ImRopoxPro
ImRopoxProOP2y ago
loading
root
root2y ago
this is not sveltekit
ImRopoxPro
ImRopoxProOP2y ago
I use vite
root
root2y ago
i don't think
nebula
nebula2y ago
same thing
alex
alex2y ago
Vite
Next Generation Frontend Tooling
nebula
nebula2y ago
its using vite
ImRopoxPro
ImRopoxProOP2y ago
No lol
alex
alex2y ago
wow docs
root
root2y ago
it's svelte not sveltekit
alex
alex2y ago
https://vitejs.dev/guide/static-deploy.html ^ this too
nebula
nebula2y ago
oh static
alex
alex2y ago
for static deploy
nebula
nebula2y ago
we shouldnt have killed all the vite templates skull
alex
alex2y ago
thats a you not me skull
Brody
Brody2y ago
there still is 1
Brody
Brody2y ago
it uses http-server to serve the static files
ImRopoxPro
ImRopoxProOP2y ago
Okay I got it. Thanks for your help.
Want results from more Discord servers?
Add your server