forked from TeamGrowTo/Team-GrowTo-Client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
26 lines (23 loc) · 723 Bytes
/
Copy pathnext.config.js
File metadata and controls
26 lines (23 loc) · 723 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
/** @type {import('next').NextConfig} */
const path = require("path");
module.exports = {
reactStrictMode: true,
webpack: (config) => {
config.resolve.alias = {
...config.resolve.alias,
components: path.resolve(__dirname, "components"),
libs: path.resolve(__dirname, "libs"),
public: path.resolve(__dirname, "public"),
styles: path.resolve(__dirname, "styles"),
types: path.resolve(__dirname, "types"),
pages: path.resolve(__dirname, "pages"),
assets: path.resolve(__dirname, "public/assets"),
apis: path.resolve(__dirname, "apis"),
};
config.module.rules.push({
test: /\.svg$/,
use: ["@svgr/webpack"],
});
return config;
},
};