-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnext.config.mjs
42 lines (35 loc) · 974 Bytes
/
next.config.mjs
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
/** @type {import('next').NextConfig} */
const nextConfig = {
// output: 'export', // Outputs a Single-Page Application (SPA).
distDir: './build', // Changes the build output directory to `./dist`.
experimental: {
turbo: {
rules: {
'*.svg': {
loaders:['@svgr/webpack'],
as: '*.js'
}
}
}
}
// webpack(config) {
// config.module.rules.push({
// test: /\.svg$/,
// use: ['@svgr/webpack'],
// })
// config.module.rules.push(
// {
// test: /\.(png|jpe?g|gif|svg)$/i,
// use: [
// {
// loader: 'file-loader',
// options: {
// name: '[name].[hash].[ext]', // Optional: Customize output filename
// outputPath: 'images', // Optional: Specify output directory
// },
// },
// ],
// }
// )
}
export default nextConfig