diff --git a/packages/next/src/build/webpack/loaders/next-edge-app-route-loader/index.ts b/packages/next/src/build/webpack/loaders/next-edge-app-route-loader/index.ts index 83779f7fac9fae..4f894d1ee0eea7 100644 --- a/packages/next/src/build/webpack/loaders/next-edge-app-route-loader/index.ts +++ b/packages/next/src/build/webpack/loaders/next-edge-app-route-loader/index.ts @@ -5,6 +5,7 @@ import type { webpack } from 'next/dist/compiled/webpack/webpack' import { WEBPACK_RESOURCE_QUERIES } from '../../../../lib/constants' import type { MiddlewareConfig } from '../../../analysis/get-page-static-info' import { loadEntrypoint } from '../../../load-entrypoint' +import { isMetadataRoute } from '../../../../lib/metadata/is-metadata-route' export type EdgeAppRouteLoaderQuery = { absolutePagePath: string @@ -36,7 +37,7 @@ const EdgeAppRouteLoader: webpack.LoaderDefinitionFunction