-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
46 lines (44 loc) · 1.51 KB
/
next.config.js
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
45
46
/** @type {import('next').NextConfig} */
module.exports = {
i18n: {
locales: ['en'],
defaultLocale: 'en',
},
eslint: {
ignoreDuringBuilds: true
},
reactStrictMode: true,
webpack: config => {
config.plugins.push(new webpack.EnvironmentPlugin(process.env));
config.module.rules.push({
test: [/\.svg$/, /\.woff$/],
loader: "file-loader",
options: {
name: "[name].[hash:8].[ext]",
publicPath: `/_next/static/images/`,
outputPath: "static/images"
}
});
config.resolve.alias["@helpers"] = path.resolve(__dirname + "/helpers");
config.resolve.alias["@hooks"] = path.resolve(__dirname + "/hooks");
config.resolve.alias["@utils"] = path.resolve(__dirname + "/utils");
config.resolve.alias["@providers"] = path.resolve(__dirname + "/providers");
config.resolve.alias["@styles"] = path.resolve(__dirname + "/styles");
config.resolve.alias["@pages"] = path.resolve(__dirname + "/pages");
config.resolve.alias["@sections"] = path.resolve(__dirname + "/sections");
config.resolve.alias["@icons"] = path.resolve(__dirname + "/icons");
config.resolve.alias["@images"] = path.resolve(
__dirname + "/public/images"
);
config.resolve.alias["@validators"] = path.resolve(
__dirname + "/validators"
);
config.resolve.alias["@containers"] = path.resolve(
__dirname + "/containers"
);
config.resolve.alias["@components"] = path.resolve(
__dirname + "/components"
);
return config;
}
};