-
Notifications
You must be signed in to change notification settings - Fork 2
/
next.config.js
executable file
·39 lines (35 loc) · 828 Bytes
/
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
/* eslint-disable @typescript-eslint/no-var-requires */
/** @type {import('next').NextConfig} */
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
});
const { router } = require('./routers/router');
const { BASE_URL, PORT, REDUX_LOGGER } = process.env;
module.exports = withBundleAnalyzer({
eslint: {
dirs: ['.'],
},
pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'],
poweredByHeader: false,
basePath: '',
reactStrictMode: true,
output: 'standalone',
images: {
domains: ['i.dummyjson.com'],
},
env: {
BASE_URL,
PORT,
REDUX_LOGGER,
},
async rewrites() {
return router;
},
webpack: config => {
config.module.rules.push({
test: /\.svg$/,
use: ['@svgr/webpack'],
});
return config;
},
});