-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.ts
34 lines (31 loc) · 1.13 KB
/
next.config.ts
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 createNextIntlPlugin from 'next-intl/plugin';
import type { NextConfig } from 'next';
const withNextIntl = createNextIntlPlugin('./lib/i18n/request.ts');
const nextConfig: NextConfig = {
// need to be test on CI but not on building of the app
typescript: { ignoreBuildErrors: true },
// We didn't use eslint
eslint: { ignoreDuringBuilds: true },
// Static website output
output: 'export',
images: { unoptimized: true },
trailingSlash: false,
transpilePackages: ['next-mdx-remote'],
experimental: {
// Use Workers and Threads for webpack compilation
webpackBuildWorker: true,
// Execute parallel tracing of server builds
parallelServerBuildTraces: true,
// Execute parallel server compilation
parallelServerCompiles: true,
// A list of packages that Next.js should automatically evaluate and optimise the imports for.
// @see https://vercel.com/blog/how-we-optimized-package-imports-in-next-js
optimizePackageImports: [
'@heroicons/react',
'@radix-ui/react-avatar',
'@radix-ui/react-dropdown-menu',
'shiki',
],
},
};
export default withNextIntl(nextConfig);