Skip to content

feat: support project file origins and preserve legacy cookie access - #237

Open
raviships wants to merge 2 commits into
nextfrom
codex/feat/project-file-subdomains
Open

feat: support project file origins and preserve legacy cookie access#237
raviships wants to merge 2 commits into
nextfrom
codex/feat/project-file-subdomains

Conversation

@raviships

@raviships raviships commented Sep 6, 2026

Copy link
Copy Markdown
Collaborator

Pairs with https://github.com/edgestorejs/edge-store-app/pull/360. The hosted provider discovers file-delivery origins from the access-token response, and React initializes every required cookie host. After an existing project migrates, returned URLs use its project hostname while saved legacy protected URLs keep working. Upload/delete/get/list calls stay unchanged.

Adds optional provider baseUrl and clientInit.urls, preserving the existing service/provider fallback and explicit EDGE_STORE_BASE_URL override. Includes a minor changeset for sdk/shared/server/react, and SDK schema generation pinned to service commit 33ee43df8e8f5918637eb561bd90ccc341f6040b. The regenerated schema also includes existing develop API changes that were not in its previous snapshot. Custom domains are deferred.

Validation: pnpm build, pnpm test, pnpm typecheck, pnpm test:types, and lint for the four affected packages pass. Tests cover both initialization hosts, failure of one required host, legacy fallback, and explicit origin override. Local browser checks against the real service/edge handlers and isolated MySQL passed legacy/project public and protected reads, signed reads without cookies, new-project legacy blocking, and upload/read/delete using returned project URLs. S3 contents and upload-event processing were simulated.

Release server and React together before migrating protected projects. Service rollout remains disabled pending the real domain, DNS/TLS, and AWS/browser/accounting checks documented in the paired PR.

Consumer compatibility

Continue storing and using returned URLs rather than constructing hostnames. Migrated projects return project URLs while existing shared-host links remain supported. Protected initialization succeeds only when every required host initializes; older services and other providers retain the baseUrl plus path fallback.

Upgrade @edgestore/server and @edgestore/react together before migration. Review Next.js remotePatterns or other image allowlists, CSP, hardcoded origins, and explicit EDGE_STORE_BASE_URL overrides. Browser cross-site cookie restrictions still apply; signed read URLs remain available where cookie access is unsuitable. No new customer configuration option is introduced.

@vercel

vercel Bot commented Sep 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

3 Skipped Deployments
Project Deployment Actions Updated
edgestore-docs Ignored Ignored Preview Sep 7, 2026 7:52am UTC
example-access-control Ignored Ignored Preview Sep 7, 2026 7:52am UTC
example-components Ignored Ignored Preview Sep 7, 2026 7:52am UTC

Request Review

@raviships
raviships marked this pull request as ready for review September 7, 2026 07:56
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 7, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-07T08:01:31.129493Z 08e9330 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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.

1 participant