Skip to content

Server build import with particular setup #797

Discussion options

You must be logged in to vote

Now I'd be at the point of importing importBuild.cjs but one thing I'm not sure of is... it doesn't seem to be generated in dev right? How should I import it in dev?

You need importBuild.cjs only for loading the build files at dist/server/. In dev, you don't need importBuild.cjs and instead it's Vite's development server that crawls and dynamically imports the user land files.

So it's either you run $ vite build and import importBuild.cjs, or you instantiate Vite's development server as described here.

It is starting to feel more and more like using separate workers would be the best way to make this work canonically with VPS though.

I believe the question here is whether Vite's devel…

Replies: 3 comments 34 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
26 replies
@alexturpin
Comment options

@brillout
Comment options

@brillout
Comment options

@alexturpin
Comment options

@brillout
Comment options

Comment options

You must be logged in to vote
8 replies
@alexturpin
Comment options

@alexturpin
Comment options

@alexturpin
Comment options

@brillout
Comment options

Answer selected by alexturpin
@alexturpin
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants