forked from thematters/logbook-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
41 lines (33 loc) · 780 Bytes
/
next.config.js
File metadata and controls
41 lines (33 loc) · 780 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
35
36
37
38
39
40
41
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
trailingSlash: true,
poweredByHeader: false,
pageExtensions: ["tsx"],
// i18n: {
// locales: ["en", "zh"],
// defaultLocale: "en",
// localeDetection: true,
// },
webpack(config, options) {
config.module.rules.push({
test: /\.svg$/,
use: [
{
loader: '@svgr/webpack',
options: { icon: true, dimensions: false, },
},
{
loader: 'url-loader',
options: {
limit: 1024,
publicPath: '/_next/static/',
outputPath: `${options.isServer ? '../' : ''}static/`,
},
},
],
});
return config;
},
};
module.exports = nextConfig;