Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Commit 55a3e1a

Browse files
authored
fix: use absolute path for included files (#313)
1 parent c19fc35 commit 55a3e1a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/yellow-cooks-hunt.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@astrojs/netlify': patch
3+
---
4+
5+
Fixes an issue where files were not included in the SSR function when built in a monorepo

packages/netlify/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ export default function netlifyIntegration(
259259
JSON.stringify({
260260
config: {
261261
nodeBundler: 'none',
262-
includedFiles: ['.netlify/functions-internal/ssr/**/*'],
262+
includedFiles: [fileURLToPath(new URL('.netlify/functions-internal/ssr/**/*', rootDir))],
263263
},
264264
version: 1,
265265
})

0 commit comments

Comments
 (0)