We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d7b1ef commit bc6a277Copy full SHA for bc6a277
โnext.config.tsโ
@@ -1,9 +1,10 @@
1
import type { NextConfig } from 'next';
2
3
const nextConfig: NextConfig = {
4
- /* config options here */
5
reactStrictMode: false,
6
- webpack(config) {
+ output: 'export',
+ webpack(config, { isServer }) {
7
+ // SVG ๋ก๋ ์ถ๊ฐ
8
config.module.rules.push({
9
test: /\.svg$/, // SVG ํ์ผ์ ์ฐพ์ต๋๋ค.
10
use: [
@@ -16,6 +17,19 @@ const nextConfig: NextConfig = {
16
17
],
18
});
19
20
+ // publicPath ์ค์
21
+ config.output.publicPath = '/';
22
+
23
+ // devServer ์ค์ ์ถ๊ฐ (ํด๋ผ์ด์ธํธ ์ ์ฉ)
24
+ if (!isServer) {
25
+ config.devServer = {
26
+ ...config.devServer,
27
+ devMiddleware: {
28
+ publicPath: '/',
29
+ },
30
+ };
31
+ }
32
33
return config;
34
},
35
images: {
0 commit comments