Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to use hasNextSupport for custom-routes in next export check #17630

Merged
merged 2 commits into from Oct 5, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/next/export/index.ts
Expand Up @@ -33,6 +33,7 @@ import loadConfig, {
isTargetLikeServerless,
} from '../next-server/server/config'
import { eventCliSession } from '../telemetry/events'
import { hasNextSupport } from '../telemetry/ci-info'
import { Telemetry } from '../telemetry/storage'
import {
normalizePagePath,
Expand Down Expand Up @@ -170,7 +171,7 @@ export default async function exportApp(
)

if (
!process.env.NOW_BUILDER &&
!hasNextSupport &&
!options.buildExport &&
customRoutesDetected.length > 0
) {
Expand Down