Skip to content

Commit 66cd37f

Browse files
committed
only set standalone if output is not export
1 parent 4df59c1 commit 66cd37f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/adapter/adapter.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ const NETLIFY_FRAMEWORKS_API_CONFIG_PATH = '.netlify/v1/config.json'
1414
const adapter: NextAdapter = {
1515
name: 'Netlify',
1616
modifyConfig(config) {
17-
// Enable Next.js standalone mode at build time
18-
config.output = 'standalone'
17+
if (config.output !== 'export') {
18+
// Enable Next.js standalone mode at build time
19+
config.output = 'standalone'
20+
}
1921

2022
modifyConfigForImageCDN(config)
2123

0 commit comments

Comments
 (0)