-
Notifications
You must be signed in to change notification settings - Fork 357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: deprecate netlify:edge
in function templates
#4842
Conversation
📊 Benchmark resultsComparing with 0eb9d16 Package size: 222 MB⬇️ 0.00% decrease vs. 0eb9d16
Legend
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just to small things while we are looking at these files
@@ -1,4 +1,4 @@ | |||
import { Context } from "netlify:edge"; | |||
import { Context } from "https://edge.netlify.com"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import { Context } from "https://edge.netlify.com"; | |
import type { Context } from "https://edge.netlify.com"; |
@@ -1,4 +1,4 @@ | |||
import { Context } from "netlify:edge"; | |||
import { Context } from "https://edge.netlify.com"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import { Context } from "https://edge.netlify.com"; | |
import type { Context } from "https://edge.netlify.com"; |
I'd rather do that separately, if you don't mind. These templates come mostly from https://edge-functions-examples.netlify.app/, so if there's something in them we want to change, we should update stream as well. Let's do a more holistic review of these templates as a separate initiative. |
Summary
Replaces
netlify:edge
withhttps://edge.netlify.com
in Edge Functions templates.Part of https://github.com/netlify/pillar-runtime/issues/322.