Skip to content

Commit d0f0d0a

Browse files
authored
Revert "Error in next export when serverActions is enabled (#49959)"
This reverts commit eaea208.
1 parent babe503 commit d0f0d0a

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)