-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
74 lines (70 loc) · 1.77 KB
/
next.config.js
File metadata and controls
74 lines (70 loc) · 1.77 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/** @type {import('next').NextConfig} */
const prod = process.env.NODE_ENV === 'production';
const runtimeCaching = require('next-pwa/cache');
const withPWA = require('next-pwa')({
dest: 'public',
register: true,
skipWaiting: true,
runtimeCaching,
disable: prod ? false : true,
});
const nextConfig = withPWA({
reactStrictMode: true,
swcMinify: true,
compiler: {
styledComponents: true,
},
//output: 'standalone',
images: {
unoptimized: true,
},
experimental: {
appDir: true,
},
images: {
remotePatterns: [
{
protocol: 'https',
// hostname: 'vvue-bucket.s3.ap-northeast-2.amazonaws.com',
hostname: 'vvue-s3.s3.ap-northeast-2.amazonaws.com',
port: '',
pathname: '/image/**',
},
],
},
async rewrites() {
return [
// {
// source: '/api/auth',
// destination: 'http://vvue.site/api/auth',
// },
// {
// source: '/api/auth/refresh-access-token',
// destination: 'http://vvue.site/api/auth/refresh-access-token',
// },
// {
// source: '/api/auth/:path*',
// destination: 'http://vvue.site/api/auth/:path*',
// },
// {
// source: '/api/:path*',
// destination: 'http://vvue.site/api/:path*',
// },
// source: 유저가 진입할 path
// destination: 유저가 이동할 path
// {
// source: '/backend/v1/api/:path*',
// destination: 'https://vvue.site/v1/api/:path*',
// },
{
source: '/backend/v1/api/:path*',
destination: 'http://vvue.site:8080/back/api/:path*',
},
{
source: '/pictures/:path*',
destination: 'https://vvue.site/pictures/:path*',
},
];
},
});
module.exports = nextConfig;