mirror of
https://github.com/openshiporg/openship.git
synced 2026-06-19 07:35:55 +00:00
7adb0f934a
- 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
22 lines
561 B
TypeScript
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; |