Skip to content

Commit

Permalink
fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
shuding authored and gnoff committed Oct 20, 2023
1 parent f99cd2e commit 3a80221
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions packages/next/src/export/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,15 +247,6 @@ export async function exportAppImpl(
)
}

// Running 'next export' or output is set to 'export'
if (options.isInvokedFromCli || isExportOutput) {
if (nextConfig.experimental.serverActions) {
throw new ExportError(
`Server Actions are not supported with static export.`
)
}
}

const telemetry = options.buildExport ? null : new Telemetry({ distDir })

if (telemetry) {
Expand Down

0 comments on commit 3a80221

Please sign in to comment.