Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(nextjs): Improve NextConfigExports compatibility
Passing type `import('next/dist/next-server/server/config').NextConfig` into `withSentryConfig` results in a type-checking error (`ts(2345)`): ``` Argument of type 'NextConfig' is not assignable to parameter of type 'NextConfigExports'. Types of property 'experimental' are incompatible. Type '{ cpus?: number; plugins?: boolean; profiling?: boolean; sprFlushToDisk?: boolean; reactMode?: "legacy" | "concurrent" | "blocking"; workerThreads?: boolean; pageEnv?: boolean; optimizeImages?: boolean; ... 13 more ...; gzipSize?: boolean; }' is not assignable to type '{ plugins: boolean; }'. Property 'plugins' is optional in type '{ cpus?: number; plugins?: boolean; profiling?: boolean; sprFlushToDisk?: boolean; reactMode?: "legacy" | "concurrent" | "blocking"; workerThreads?: boolean; pageEnv?: boolean; optimizeImages?: boolean; ... 13 more ...; gzipSize?: boolean; }' but required in type '{ plugins: boolean; }'. ```
- Loading branch information