Skip to content

feat(cli): scaffold fetch-style edge functions#5845

Draft
jgoux wants to merge 3 commits into
developfrom
agent/next-functions-fetch-default
Draft

feat(cli): scaffold fetch-style edge functions#5845
jgoux wants to merge 3 commits into
developfrom
agent/next-functions-fetch-default

Conversation

@jgoux

@jgoux jgoux commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Summary

Updates the next CLI Edge Function scaffold to use the Web Fetch-style export default { fetch(...) } authoring model instead of Deno.serve(...).

New functions now get a function-local package.json with no default dependencies, and no generated deno.json. This makes the default template dependency-free while establishing the package-manifest boundary for users who add dependencies under supabase/functions/<function-name> and import them by bare specifier from function code.

Notes

Existing deno.json manifest detection remains in shared config so existing projects and explicit import-map flows keep working.

@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

👋 Thanks for the contribution! This pull request isn't linked to a tracked issue, so it's being closed automatically.

Please open an issue first, wait for a maintainer to add the open-for-contribution label, then open a pull request that links the issue with a closing keyword (e.g. Closes #123).
See CONTRIBUTING.md for the full workflow. Once a maintainer adds the open-for-contribution label to a linked open issue, reopen or open a new pull request and it will be accepted.

@github-actions github-actions Bot closed this Jul 9, 2026
@avallete avallete reopened this Jul 9, 2026
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.

2 participants