Bootstrap Live Dev Server recipe and Dockerfile - #1024
Draft
yattias wants to merge 1 commit into
Draft
Conversation
Co-authored-by: yattias <802819+yattias@users.noreply.github.com>
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
| # Generated by CodePress bootstrap-dev-server. | ||
| # Dev-mode image for the "web" frontend (Live Dev Server). | ||
| # Edits are preserved, but running /codepress-bootstrap-dev-server again may overwrite them. | ||
| FROM public.ecr.aws/docker/library/node:22-bookworm |
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.




Summary
Make ResearchHub/web ready for CodePress Live Dev Server previews with a committed recipe that describes the root Next.js app and a thin dev image that starts it on the expected preview port.
Technical details
The commit adds .codepress/dev-server/recipe.json for the single root frontend (Next.js, Node 22, npm, port 3000, package-lock.json dependency fingerprint, and procps) and .codepress/dev-server/Dockerfile.web. The Dockerfile uses the full public-ECR node:22-bookworm image, installs only procps, declares the bind/HMR runtime variables, exposes port 3000, leaves source and node_modules to the runtime checkout, and runs npm run dev.
Discovery did not find a confident staging backend declaration, so staging_backend_url is intentionally omitted and no Live Dev Server public API variable was overwritten or invented. No backend source/CORS surface exists in this repository; the external API would need its own repository bootstrap.
The bounded social-auth audit found Google through next-auth 4.24.11. The flow is server-owned by NextAuth and does not expose a safe relay seam for the required redirect_uri/state wrapping in this codebase, so no auth file was changed. There was no CodePress-shaped authorize-url fetch followed by window.location navigation, so Step 3a is not applicable.
PREVIEW_AUTH_STATUS: needs-customer-action
PREVIEW_AUTH_CHANGED_PATHS: none
PREVIEW_AUTH_PROVIDERS: Google: class A / NextAuth v4 owns the callback and state exchange; report-only because no safe relay seam is exposed
PREVIEW_AUTH_APPLIED_STEPS: none
PREVIEW_AUTH_CUSTOMER_ACTION: If preview relay support is required, register https://auth-87d3f8ab798deaec.preview.codepress.dev/callback as Google's exact authorized redirect URI and implement or supply a customer-owned NextAuth-compatible relay/proxy that preserves state/PKCE; the relay registration alone is not claimed as complete here
PREVIEW_AUTH_PUBLIC_ENV: none; GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET remain server-side, and no public secret or env value was added
PREVIEW_AUTH_STEP3A_INVARIANTS: PASS — no identifiable fetch/await-authorize-url plus window.location launcher; Step 3a not applicable
PREVIEW_AUTH_VALIDATION: Recipe JSON parse and Dockerfile contract checks passed; bounded auth inventory passed; live Google OAuth was not exercised and no provider-console change was made.
Changes
Test plan
Open items
Authors
Generated with CodePress · View the chat session