#Invalid next.config.js options detected unstable_includeFiles

4 messages · Page 1 of 1 (latest)

pale dust
#

based on docs https://nextjs.org/docs/advanced-features/output-file-tracing#caveats have options unstable_includeFiles . But when i try to use it, it got error
`Invalid next.config.js options detected:

  • The root value has an unexpected property, unstable_includeFiles, which is not in the list of allowed properties (amp, analyticsId, assetPrefix, basePath, cleanDistDir, compiler, compress, crossOrigin, devIndicators, distDir, env, eslint, excludeDefaultMomentLocales, experimental, exportPathMap, future, generateBuildId, generateEtags, headers, httpAgentOptions, i18n, images, onDemandEntries, optimizeFonts, output, outputFileTracing, pageExtensions, poweredByHeader, productionBrowserSourceMaps, publicRuntimeConfig, reactStrictMode, redirects, rewrites, sassOptions, serverRuntimeConfig, staticPageGenerationTimeout, swcMinify, trailingSlash, typescript, useFileSystemPublicRoutes, webpack).`

my next.config.js

{
  output: 'standalone',
  unstable_includeFiles: newrelicDeps.map(d => `node_modules/${d}/**/*.+(js|json)`),
};

Next.js automatically traces which files are needed by each page to allow for easy deployment of your application. Learn how it works here.

fading heart
#

That's for page config.

So in your page you would export this

export const config = {
  unstable_includeFiles: ...
}
pale dust
#

ohh, oke
what page should I put at?
Currently I'm implement newrelic that run on server side, which don't have pages.

fading heart
#

I'm not familiar with the feature or what you're trying to achieve so I don't know unfortunately