We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9761de1 commit 8dcf91aCopy full SHA for 8dcf91a
plugin/src/helpers/config.ts
@@ -46,7 +46,8 @@ export const getNextConfig = async function getNextConfig({
46
return failBuild('Error loading your Next config')
47
}
48
49
- const routesManifest = (await readJSON(files.find((f) => f.endsWith(ROUTES_MANIFEST_FILE)))) as RoutesManifest
+ const routeManifestFile = files.find((f) => f.endsWith(ROUTES_MANIFEST_FILE))
50
+ const routesManifest = (routeManifestFile ? await readJSON(routeManifestFile) : {}) as RoutesManifest
51
52
// If you need access to other manifest files, you can add them here as well
53
return { ...config, appDir, ignore, routesManifest }
0 commit comments