Skip to content

Commit 7036b05

Browse files
fix: respect the outdir option in the netlify integration (#13799)
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
1 parent 29f3024 commit 7036b05

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/fine-needles-send.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 the adapter didn't take into consideration the `outDir` configuration.

packages/integrations/netlify/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ export default function netlifyIntegration(
515515
rootDir = config.root;
516516
await cleanFunctions();
517517

518-
outDir = new URL('./dist/', rootDir);
518+
outDir = new URL(config.outDir, rootDir);
519519

520520
const enableImageCDN = isRunningInNetlify && (integrationConfig?.imageCDN ?? true);
521521

0 commit comments

Comments
 (0)