Skip to content

Commit 281ae80

Browse files
fix: don't exclude remote functions when deploying to Netlify edge functions (#14214)
* Fix inaccessible remote functions with Netlify edge adapter * add changeset * Apply suggestion from @eltigerchino --------- Co-authored-by: Tee Ming <[email protected]>
1 parent a19a57a commit 281ae80

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changeset/dirty-rats-switch.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sveltejs/adapter-netlify': patch
3+
---
4+
5+
fix: include remote functions when deploying to Netlify edge functions

packages/adapter-netlify/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,8 @@ async function generate_edge_functions({ builder }) {
159159
// Netlify will handle the optional trailing slash for us
160160
const excluded = [
161161
// Contains static files
162-
`/${builder.getAppPath()}/*`,
162+
`/${builder.getAppPath()}/immutable/*`,
163+
`/${builder.getAppPath()}/version.json`,
163164
...builder.prerendered.paths,
164165
...Array.from(assets).flatMap((asset) => {
165166
if (asset.endsWith('/index.html')) {

0 commit comments

Comments
 (0)