未验证 提交 04234cc3 编写于 作者: J JJ Kasper 提交者: GitHub

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

Follow-up to https://github.com/vercel/next.js/pull/17538 per https://github.com/vercel/next.js/pull/17538#discussion_r499647323 this updates the check to use the existing `hasNextSupport` export instead of checking the environment variable directly
上级 742f5d9a
......@@ -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,
......@@ -170,7 +171,7 @@ export default async function exportApp(
)
if (
!process.env.NOW_BUILDER &&
!hasNextSupport &&
!options.buildExport &&
customRoutesDetected.length > 0
) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册