You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks a lot for this really nice tool. But I'm a bit confused, for now development mode works like a charm, but I'm unable to make it work in production mode (the express server runs, but not the website) with the node adaptor.
More specifically, I'm using sveltekit (that uses vite under the hood), and if I compile it with the adapter-static adaptor (and properly configuring after proper configuration via inlineViteConfig so that out is configured to build), it works fine… However, I'd like to compile it with the adapter-node adapter https://kit.svelte.dev/docs/adapter-node since I may want to benefit from Server Side Rendering etc. Hence, after running:
$ npm run build
# if wanted, you can start the production node server with $ node build
$ ls build
client env.js handler.js index.js server shims.jsa
I have a index.js file that is run by node but since vite-express serves build as static files, it cannot serve the actual page since there is not even an index.html page.
Is vite-express able to deal with vite & SSR rendering, or is is only working for static websites?
EDIT
Actually, I'm thinking that I might also be interested to bundle the vite-express binary with vite itself, or maybe rollup if it's not possible (for now vite is only used for the frontend as I understand it), so that I could, for instance, use vite-plugin-graphql-loader to automatically bundle the .graphql files. Is it possible somehow?
The text was updated successfully, but these errors were encountered:
Thanks a lot for this really nice tool. But I'm a bit confused, for now development mode works like a charm, but I'm unable to make it work in production mode (the express server runs, but not the website) with the node adaptor.
More specifically, I'm using sveltekit (that uses vite under the hood), and if I compile it with the adapter-static adaptor (and properly configuring after proper configuration via inlineViteConfig so that
out
is configured tobuild
), it works fine… However, I'd like to compile it with the adapter-node adapter https://kit.svelte.dev/docs/adapter-node since I may want to benefit from Server Side Rendering etc. Hence, after running:I have a
index.js
file that is run bynode
but since vite-express servesbuild
as static files, it cannot serve the actual page since there is not even anindex.html
page.Is vite-express able to deal with vite & SSR rendering, or is is only working for static websites?
EDIT
Actually, I'm thinking that I might also be interested to bundle the
vite-express
binary with vite itself, or maybe rollup if it's not possible (for now vite is only used for the frontend as I understand it), so that I could, for instance, use vite-plugin-graphql-loader to automatically bundle the.graphql
files. Is it possible somehow?The text was updated successfully, but these errors were encountered: