-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.ts
More file actions
34 lines (31 loc) · 854 Bytes
/
next.config.ts
File metadata and controls
34 lines (31 loc) · 854 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import type { NextConfig } from "next";
import createNextIntlPlugin from 'next-intl/plugin';
import path from 'path';
const withNextIntl = createNextIntlPlugin('./i18n.ts');
const nextConfig: NextConfig & Record<string, any> = {
typescript: {
// Disable type checking during builds (warnings only, not blocking)
ignoreBuildErrors: true,
},
webpack: (config, { isServer }) => {
// Fix for @supabase/ssr cookie dependency resolution
if (!isServer) {
config.resolve.alias = {
...config.resolve.alias,
cookie: path.resolve(__dirname, 'node_modules/cookie'),
};
}
return config;
},
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'i.scdn.co',
port: '',
pathname: '/image/**',
},
],
},
};
export default withNextIntl(nextConfig);