-
Notifications
You must be signed in to change notification settings - Fork 1
/
next.config.js
45 lines (40 loc) · 817 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
40
41
42
43
44
45
/* eslint-disable */
const webpacked = {
webpack(config, { isServer }) {
config.module.rules.push({
test: /\.svg$/,
use: ['@svgr/webpack'],
});
if (!isServer) {
config.resolve.fallback.fs = false;
}
return config;
},
async redirects() {
return [
{
source: '/feed/podcast',
destination: '/feed/podcast.xml',
permanent: true,
},
];
},
};
webpacked['i18n'] = {
locales: ['en', 'am'],
defaultLocale: 'en',
localeDetection: true,
};
webpacked.env = {
host:
process.env.NODE_ENV === 'production'
? 'https://zemachfm.com'
: 'http://localhost:3000',
};
webpacked.images = {
domains: ['zemachfm.com', 'api.zemachfm.com'],
};
webpacked.eslint = {
ignoreDuringBuilds: true,
};
module.exports = webpacked;