-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
fix(adapter-netlify)!: write output conforming to Netlify Frameworks API #15294
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
Changes from all commits
35e8762
0d14399
324129f
312d3bf
3f81780
600efd1
afa9a10
4d06096
ed8bc9d
01184a9
12234c9
85e7010
47cac99
45348b4
278ab1c
7039e2e
ca0a9eb
c6bbe95
f5b01e3
e29d240
2d31712
832c45a
e21558e
2f22b89
12164d9
be919e6
9871ba2
03faae0
c3db1e4
4cc45b5
0250cbe
34064f6
74f639b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| --- | ||
| '@sveltejs/adapter-netlify': major | ||
| --- | ||
|
|
||
| breaking: write output that conforms to the stable [Netlify Frameworks API](https://docs.netlify.com/build/frameworks/frameworks-api/). | ||
|
|
||
| Deploying and previewing with Netlify CLI now requires [v17.31.0](https://github.com/netlify/cli/releases/tag/v17.31.0) or later. Run `npm i -g netlify-cli@latest` to upgrade. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,8 @@ | ||
| [build] | ||
| publish = "build" | ||
|
|
||
| # TODO: remove this after we refactor to the Netlify frameworks API | ||
| # TODO: remove this once @netlify/dev works with the Netlify frameworks API | ||
| # we are purposely misusing the user functions config to discover our framework | ||
| # build output because our adapter still outputs using an older API but the new | ||
| # Netlify dev server adheres to the new API | ||
| # build output because the Netlify dev plugin doesn't currently detect it | ||
| [functions] | ||
| directory = ".netlify/functions-internal" | ||
| directory = ".netlify/v1/functions" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @serhalp is there any way we could get the Netlify dev plugin to work with the Netlify framework API so we no longer need this hack? Currently, I don't think it picks up these directories or config.json
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, I'm working on it actually! I actually realized the issue is that
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we go ahead with this test workaround and leave a todo to remove this once |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,13 @@ | ||
| [build] | ||
| publish = "build" | ||
|
|
||
| # TODO: remove these once we overhaul the Netlify adapter to use the new edge declarations https://docs.netlify.com/build/edge-functions/declarations/#declare-edge-functions-inline | ||
| # TODO: remove this once @netlify/dev works with the Netlify frameworks API | ||
| # we are purposely misusing the edge functions config to discover our framework | ||
| # build output because the Netlify dev plugin doesn't currently detect it | ||
| edge_functions = ".netlify/v1/edge-functions" | ||
|
|
||
| # defaults to "netlify/edge-functions" (without the . prefix) | ||
| edge_functions = ".netlify/edge-functions" | ||
|
|
||
| # the dev server doesn't read the manifest.json in edge-functions so we need | ||
| # to explicitly declare this here | ||
| # Netlify dev plugin doesn't detect .netlify/v1/config.json | ||
| [[edge_functions]] | ||
| function = "sveltekit-render" | ||
| path = "/*" | ||
| function = "render" | ||
| excludedPath = ["/_app/immutable/*", "/_app/version.json", "/.netlify/*"] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,8 @@ | ||
| [build] | ||
| publish = "build" | ||
|
|
||
| # TODO: remove this after we refactor to the Netlify frameworks API | ||
| # TODO: remove this once @netlify/dev works with the Netlify frameworks API | ||
| # we are purposely misusing the user functions config to discover our framework | ||
| # build output because our adapter still outputs using an older API but the new | ||
| # Netlify dev server adheres to the new API | ||
| # build output because the Netlify dev plugin doesn't currently detect it | ||
| [functions] | ||
| directory = ".netlify/functions-internal" | ||
| directory = ".netlify/v1/functions" |
Uh oh!
There was an error while loading. Please reload this page.