Skip to content

Commit 0a81cc0

Browse files
authored
Revert "Error in next export when serverActions is enabled" (#50019)
Reverts #49959 since the PR [was failing CI](https://github.com/vercel/next.js/actions/runs/5015634314/jobs/8991545593#step:6:179) fix NEXT-634
1 parent babe503 commit 0a81cc0

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

packages/next/src/export/index.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -228,12 +228,6 @@ export default async function exportApp(
228228
)
229229
}
230230

231-
if (nextConfig.experimental.serverActions) {
232-
throw new ExportError(
233-
`Server Actions are not supported with static export.`
234-
)
235-
}
236-
237231
const customRoutesDetected = ['rewrites', 'redirects', 'headers'].filter(
238232
(config) => typeof nextConfig[config] === 'function'
239233
)

0 commit comments

Comments
 (0)