Skip to content

Commit

Permalink
Revert "Error in next export when serverActions is enabled (#49959)"
Browse files Browse the repository at this point in the history
This reverts commit eaea208.
  • Loading branch information
styfle committed May 18, 2023
1 parent babe503 commit d0f0d0a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/next/src/export/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
(config) => typeof nextConfig[config] === 'function'
)
Expand Down

0 comments on commit d0f0d0a

Please sign in to comment.