Skip to content

Bootstrap CodePress Live Dev Server recipe + dev Dockerfile - #35

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

Bootstrap CodePress Live Dev Server recipe + dev Dockerfile#35
codepress-dev[bot] wants to merge 1 commit into
masterfrom
codepress/dev@codepress.dev/bootstrap-live-dev-server-artifacts-b6322b18

Conversation

@codepress-dev

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

Copy link
Copy Markdown

Summary

Adds the committed Live Dev Server configuration for the Create React App frontend in web/. The preview image uses Node 16 because this legacy react-scripts/webpack toolchain is incompatible with OpenSSL 3 in newer Node releases.

  • Adds .codepress/dev-server/recipe.json with the CRA/Yarn dev command, port 3000, dependency lockfile, and procps.
  • Adds a thin .codepress/dev-server/Dockerfile.web that binds to 0.0.0.0, keeps dependencies and source at runtime, and configures HMR from the preview environment.
  • No staging backend URL was found, so none is persisted.
  • No Django CORS change was made: the app has no CORS surface or cross-origin caller, and no staging-only configuration path.

Validation

Validated the JSON schema and the Dockerfile contract statically: the recipe references the Dockerfile, the image is development-mode and thin, and it includes the required bind/HMR environment configuration. The image was not built locally.

Staging CORS would take effect only after a staging deployment if the project later gains a cross-origin API surface.

Generated with CodePress

Author the committed Live Dev Server artifacts for this repo so previews boot
from repo-owned files instead of a runtime heuristic.

Discovery found one runnable frontend, web/ (create-react-app, react-scripts
1.0.10, Yarn Classic, port 3000). The dev image pins node:16-bookworm because
webpack 2.6.1 hashes with md4, which OpenSSL 3 (Node 17+) removed; on a newer
base the dev server exits with ERR_OSSL_EVP_UNSUPPORTED. The image is thin —
toolchain only, no baked node_modules and no source COPY — and binds via
CODEPRESS_BIND_HOST with HMR wired to the runtime env vars.

No staging backend URL is persisted: the repo has no .env files, CI workflow
env, or rewrite config declaring one.

No backend CORS change: the Django server in server/ has no CORS surface
(django-cors-headers is not installed, no allowlist), the React app makes no
cross-origin API calls, and Django serves the built frontend same-origin from
its catch-all index view. It also has no staging settings module to scope such
a change to.

Co-authored-by: dev@codepress.dev <dev@codepress.dev>
@codepress-dev codepress-dev Bot added the cp:in-progress CodePress: still being worked on label Jul 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cp:in-progress CodePress: still being worked on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants