-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Expand file tree
/
Copy pathnext.config.js
More file actions
31 lines (24 loc) · 621 Bytes
/
next.config.js
File metadata and controls
31 lines (24 loc) · 621 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
import compose from 'next-compose-plugins';
import analyzer from '@next/bundle-analyzer';
import pwa from 'next-pwa';
const withBundleAnalyzer = analyzer({
enabled: process.env.ANALYZE === 'true',
});
const withPWA = pwa({
dest: 'public',
disable: process.env.NODE_ENV !== 'production',
});
/** @type {import('next').NextConfig} */
const nextConfig = {
i18n: {
locales: ['en', 'es', 'pt-BR', 'fr', 'de'],
defaultLocale: 'en',
},
eslint: {
ignoreDuringBuilds: true,
},
typescript: {
ignoreBuildErrors: true,
},
};
export default compose([withBundleAnalyzer, withPWA], nextConfig);