Skip to content

Commit ee7e8fc

Browse files
committed
fix: use ExperimentalConfigWithLegacy for appDir
1 parent eb887c0 commit ee7e8fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/runtime/src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import {
3131
getSSRLambdas,
3232
} from './helpers/functions'
3333
import { generateRedirects, generateStaticRedirects } from './helpers/redirects'
34-
import { shouldSkip, isNextAuthInstalled, getCustomImageResponseHeaders, getRemotePatterns } from './helpers/utils'
34+
import { shouldSkip, isNextAuthInstalled, getCustomImageResponseHeaders, getRemotePatterns, ExperimentalConfigWithLegacy } from './helpers/utils'
3535
import {
3636
verifyNetlifyBuildVersion,
3737
checkNextSiteHasBuilt,
@@ -248,7 +248,7 @@ const plugin: NetlifyPlugin = {
248248
await checkZipSize(join(FUNCTIONS_DIST, `${ODB_FUNCTION_NAME}.zip`))
249249
const nextConfig = await getNextConfig({ publish, failBuild })
250250

251-
const { basePath, appDir, experimental } = nextConfig
251+
const { basePath, appDir, experimental } : {basePath: string, appDir?: string, experimental: ExperimentalConfigWithLegacy} = nextConfig
252252

253253
generateCustomHeaders(nextConfig, headers)
254254

0 commit comments

Comments
 (0)