-
Notifications
You must be signed in to change notification settings - Fork 101
Expand file tree
/
Copy pathnext.config.mjs
More file actions
55 lines (51 loc) · 1.48 KB
/
Copy pathnext.config.mjs
File metadata and controls
55 lines (51 loc) · 1.48 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<<<<<<< HEAD
import createNextIntlPlugin from 'next-intl/plugin';
const withNextIntl = createNextIntlPlugin();
=======
import { validateEnv } from './lib/env-safety.js';
validateEnv(process.env);
>>>>>>> upstream/dev
/** @type {import('next').NextConfig} */
const nextConfig = {
<<<<<<< HEAD
images: {
unoptimized: true,
=======
typescript: {
<<<<<<< HEAD
ignoreBuildErrors: true,
>>>>>>> origin/dev
=======
// F-001: TypeScript errors must fail the build to prevent shipping broken code
ignoreBuildErrors: false,
},
// Improve tree-shaking for large packages and local UI exports
experimental: {
optimizePackageImports: {
'lucide-react': {
transform: 'lucide-react/dist/esm/icons/{{member}}',
preventFullImport: true,
},
'@/components/ui': {
transform: '@/components/ui/{{member}}',
preventFullImport: true,
},
},
>>>>>>> upstream/dev
},
// Don't advertise the framework to reduce attack surface
poweredByHeader: false,
async redirects() {
return [
{ source: '/account', destination: '/me', permanent: false },
{ source: '/account/profile', destination: '/me/profile', permanent: false },
{ source: '/account/kyc', destination: '/me/kyc', permanent: false },
{ source: '/account/recovery', destination: '/recovery', permanent: false },
];
},
};
<<<<<<< HEAD
export default withNextIntl(nextConfig)
=======
export default withBundleAnalyzer(nextConfig);
>>>>>>> upstream/dev