Unverified Commit 0a81cc0f authored by Steven's avatar Steven Committed by GitHub

Revert "Error in `next export` when `serverActions` is enabled" (#50019)

Reverts vercel/next.js#49959 since the PR [was failing CI](https://github.com/vercel/next.js/actions/runs/5015634314/jobs/8991545593#step:6:179)
fix NEXT-634
parent babe5036
...@@ -228,12 +228,6 @@ export default async function exportApp( ...@@ -228,12 +228,6 @@ export default async function exportApp(
) )
} }
if (nextConfig.experimental.serverActions) {
throw new ExportError(
`Server Actions are not supported with static export.`
)
}
const customRoutesDetected = ['rewrites', 'redirects', 'headers'].filter( const customRoutesDetected = ['rewrites', 'redirects', 'headers'].filter(
(config) => typeof nextConfig[config] === 'function' (config) => typeof nextConfig[config] === 'function'
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment