-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathnext.config.mjs
More file actions
44 lines (34 loc) · 1.02 KB
/
next.config.mjs
File metadata and controls
44 lines (34 loc) · 1.02 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
/** @type {import('next').NextConfig} */
import createSvgPlugin from '@stefanprobst/next-svg';
import { readFile } from 'fs/promises';
const svgPlugin = createSvgPlugin(/* options */);
const info = JSON.parse(await readFile('./package.json'));
const nextConfig = {
i18n: {
locales: ['en', 'de'],
defaultLocale: 'en'
},
pageExtensions: ['js', 'jsx', 'md', 'mdx', 'ts', 'tsx'],
compiler: {
// Enables the styled-components SWC transform, no babel plugin required
styledComponents: true,
emotion: true
},
eslint: {
// Warning: This allows production builds to successfully complete even if
// your project has ESLint errors.
ignoreDuringBuilds: true
},
publicRuntimeConfig: {
appVersion: info.version
},
webpack(config, _options) {
// FIXME: https://github.com/vercel/next.js/discussions/30870
// eslint-disable-next-line no-param-reassign
config.infrastructureLogging = {
level: 'error'
};
return config;
}
};
export default svgPlugin(nextConfig);