forked from team-acode/sniff-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
35 lines (32 loc) · 842 Bytes
/
next.config.js
File metadata and controls
35 lines (32 loc) · 842 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
27
28
29
30
31
32
33
34
35
/** @type {import('next').NextConfig} */
// import withPlaiceholder from '@plaiceholder/next';
const nextConfig = {
async rewrites() {
return [
{
source: '/auth/:path*',
destination: `https://abcode.shop/api/v1/:path*`,
},
];
},
experimental: {
serverActions: true,
},
images: {
domains: [
'acode-bucket-fragrance.s3.ap-northeast-2.amazonaws.com',
'acode-bucket-review.s3.ap-northeast-2.amazonaws.com',
'acode-bucket-brand.s3.ap-northeast-2.amazonaws.com',
'acode-bucket-family.s3.ap-northeast-2.amazonaws.com',
'acode-bucket-ingredient.s3.ap-northeast-2.amazonaws.com',
],
},
webpack: (config) => {
config.module.rules.push({
test: /\.svg$/,
use: ['@svgr/webpack'],
});
return config;
},
};
module.exports = nextConfig;