Bootstrap CodePress Live Dev Server recipe + dev Dockerfiles#8
Open
codepress-dev[bot] wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Generated by /codepress-bootstrap-dev-server. The recipe at
.codepress/dev-server/recipe.jsonplus the per-frontend dev Dockerfile drive the Live Dev Server.What this sets up
web/, a Create React App (react-scripts 1.0.10, yarn), dev server on port 3000..codepress/dev-server/Dockerfile.web— a thin, dev-mode image (fullnode:22-bookwormbase) that binds0.0.0.0, installsprocps, enables corepack, and runsyarn startwith HMR wired to the runtime env vars (PORT,CODEPRESS_BIND_HOST,CODEPRESS_HMR_CLIENT_PORT,CODEPRESS_HMR_PROTOCOL). It bakes nonode_modulesand copies no source — deps are provided at runtime.NODE_OPTIONS=--openssl-legacy-provider, andDANGEROUSLY_DISABLE_HOST_CHECK=trueso the dev server accepts the preview host (CRA's analog of ViteallowedHosts).Not applicable here
server/) exposes no CORS surface and has no cross-origin caller — the React app makes no API calls and is served same-origin from Django (its build is copied intoserver/static/buildand served by the catch-allindexview). There is nothing cross-origin to allow, so no backend file was changed..env*,vercel.json, config rewrites, or CI env declaring one), sostaging_backend_urlis omitted.Generated with CodePress