chore: use a UUID instead of Netlify's function token - #17044
Conversation
|
Install the latest version of pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/00f30372342b6fff46a1d2b7470d7d4914587e86Open in |
🦋 Changeset detectedLatest commit: 00f3037 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Organization UI (inherited) Review profile: QUIET Plan: Advanced Run ID: 📒 Files selected for processing (1)
🔗 Linked repositories identifiedCodeRabbit considers these linked repositories for cross-repo context during reviews:
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughNetlify serverless-function generation now uses positional parameters and creates a per-build UUID for split deployments. Generated split and catch-all modules receive the UUID. Catch-all modules record the incoming request pathname in a UUID-derived header. Split modules restore the pathname from that header before responding. The previous token-based full-URL reconstruction path has been removed. Merge Risk: ⚪ Minimal · up to This release note documents UUID-based pathname restoration for Netlify split functions, including environments without the Netlify function token. No current merge-blocking risk is identified. 🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
Comment |
Follow-up on #17022 (comment)
This PR opts to generating a unique ID that Netlify split serverless functions check before restoring the requested original URL pathname. This approach works with Netlify edge functions too that don't have the
process.env.NETLIFY_FUNCTIONS_TOKENenvironment variable.