Files
openship/next.config.ts
Junaid 7adb0f934a build(deps): upgrade Next.js to v16 and enable React Compiler
- Upgrade Next.js from 15.3.2 to 16.0.3
- Enable React Compiler with babel-plugin-react-compiler
- Update tsconfig.json to use react-jsx for compiler compatibility
- Remove turbopack from dev script
- Remove eslint.ignoreDuringBuilds configuration
- Refactor auth cookie handling to avoid double await
2025-11-15 11:10:17 -06:00

22 lines
561 B
TypeScript

import type { NextConfig } from 'next';
const nextConfig: NextConfig = {
reactCompiler: true,
serverExternalPackages: ['graphql'],
// Workaround since we diverged from Keystone reltionship and document views
// typescript: {
// ignoreBuildErrors: true,
// },
images: {
remotePatterns: [
{
protocol: 'https',
hostname: process.env.S3_ENDPOINT ? process.env.S3_ENDPOINT.replace(/^https?:\/\//, '').replace(/:\d+$/, '') : '/',
port: '',
pathname: '/**',
},
],
},
};
export default nextConfig;