Skip to content

Commit

Permalink
Revert "Error in next export when serverActions is enabled" (#50019)
Browse files Browse the repository at this point in the history
  • Loading branch information
styfle authored May 18, 2023
1 parent babe503 commit 0a81cc0
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 0a81cc0

Please sign in to comment.