Skip to content

docs: install runtime dependencies when self-hosting - #3761

Open
wozhenbang2004 wants to merge 1 commit into
vikejs:mainfrom
wozhenbang2004:docs-install-self-host-runtime-dependencies
Open

wozhenbang2004 wants to merge 1 commit into
vikejs:mainfrom
wozhenbang2004:docs-install-self-host-runtime-dependencies

Conversation

@wozhenbang2004

Copy link
Copy Markdown

Refs #2112.

A standard build can still import runtime dependencies. Document copying the package manifest and lockfile with dist, then installing production dependencies before starting the server.

A real Vike 0.4.270 build failed to start with only dist. With production dependencies, the server returned the rendered page and its JavaScript asset. Also verified a clean npm ci --omit=dev from the original lockfile and ran docs:lint.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant