fix: trace lighthouse assets in standalone output
This commit is contained in:
@@ -3,6 +3,9 @@ import type { NextConfig } from "next";
|
|||||||
const nextConfig: NextConfig = {
|
const nextConfig: NextConfig = {
|
||||||
output: "standalone",
|
output: "standalone",
|
||||||
serverExternalPackages: ['lighthouse', 'chrome-launcher'],
|
serverExternalPackages: ['lighthouse', 'chrome-launcher'],
|
||||||
|
outputFileTracingIncludes: {
|
||||||
|
'/api/insight': ['./node_modules/lighthouse/**/*'],
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export default nextConfig;
|
export default nextConfig;
|
||||||
|
|||||||
Reference in New Issue
Block a user