diff --git a/apps/cockpit/next.config.ts b/apps/cockpit/next.config.ts index 2d046d02..7f84955d 100644 --- a/apps/cockpit/next.config.ts +++ b/apps/cockpit/next.config.ts @@ -1,8 +1,21 @@ import { composePlugins, withNx } from '@nx/next'; import type { WithNxOptions } from '@nx/next/plugins/with-nx'; +import { dirname, join } from 'node:path'; +import { fileURLToPath } from 'node:url'; + +const cockpitAppDir = dirname(fileURLToPath(import.meta.url)); export const nextConfig: WithNxOptions = { nx: {}, + outputFileTracingRoot: join(cockpitAppDir, '../..'), + outputFileTracingIncludes: { + '/*': [ + '../../cockpit/**/*.md', + '../../cockpit/**/*.py', + '../../cockpit/**/*.ts', + '../../nx.json', + ], + }, skipTrailingSlashRedirect: true, rewrites: async () => [ {