Skip to content

Bootstrap CodePress Live Dev Server recipe + dev Dockerfiles#9

Open
codepress-dev[bot] wants to merge 1 commit into
masterfrom
codepress/codepress/bootstrap-live-dev-server-artifacts-cafc6d94
Open

Bootstrap CodePress Live Dev Server recipe + dev Dockerfiles#9
codepress-dev[bot] wants to merge 1 commit into
masterfrom
codepress/codepress/bootstrap-live-dev-server-artifacts-cafc6d94

Conversation

@codepress-dev

@codepress-dev codepress-dev Bot commented Jul 18, 2026

Copy link
Copy Markdown

Generated by /codepress-bootstrap-dev-server. The recipe at .codepress/dev-server/recipe.json plus the per-frontend dev Dockerfile drive the Live Dev Server.

What this sets up

  • One runnable frontend: web (Create React App, react-scripts 1.0.10 / React 15). .codepress/dev-server/Dockerfile.web is a thin, dev-mode image that binds 0.0.0.0, installs procps, and runs yarn start with HMR wired to the runtime env vars (PORT, CODEPRESS_BIND_HOST, CODEPRESS_HMR_CLIENT_PORT, CODEPRESS_HMR_PROTOCOL). It pins Node 18 with the legacy OpenSSL provider because this 2017-era CRA/webpack toolchain crashes on the OpenSSL 3 hashing error under current Node, and sets DANGEROUSLY_DISABLE_HOST_CHECK=true so the preview proxy's Host header is accepted.

Not changed (by design)

  • No preview CORS edit. The Django backend in server/ has no CORS allowlist and the React app makes no cross-origin API calls — Django serves the built SPA from its own static files (same-origin). There is no cross-origin CORS surface to configure, and the project has no staging-only settings path.
  • No staging backend URL. No .env, CI, or config declares one, and the frontend reads no API base env var, so nothing was prefilled.
  • No social-auth wiring. The runnable frontend has no social/enterprise sign-in.

Generated with CodePress

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.

0 participants