Skip to content

Bootstrap CodePress Live Dev Server recipe + dev Dockerfiles#8

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

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

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 frontendweb/, 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 (full node:22-bookworm base) that binds 0.0.0.0, installs procps, enables corepack, and runs yarn start with HMR wired to the runtime env vars (PORT, CODEPRESS_BIND_HOST, CODEPRESS_HMR_CLIENT_PORT, CODEPRESS_HMR_PROTOCOL). It bakes no node_modules and copies no source — deps are provided at runtime.
    • Because react-scripts 1.0.10 (webpack 3) can't boot on modern Node's OpenSSL 3, the image sets NODE_OPTIONS=--openssl-legacy-provider, and DANGEROUSLY_DISABLE_HOST_CHECK=true so the dev server accepts the preview host (CRA's analog of Vite allowedHosts).

Not applicable here

  • Preview CORS: the repo's Django backend (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 into server/static/build and served by the catch-all index view). There is nothing cross-origin to allow, so no backend file was changed.
  • Staging backend URL: none confidently detected (no .env*, vercel.json, config rewrites, or CI env declaring one), so staging_backend_url is omitted.
  • Preview social auth: 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