forked from owaspsamm/sammwise
-
Notifications
You must be signed in to change notification settings - Fork 1
/
next.config.js
62 lines (58 loc) · 1.9 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
module.exports = {
// basePath: '/k8s/clusters/c-m-6wzgb6p6/api/v1/namespaces/sammwise/services/http:sammwise:80/proxy' || process.env.NEXT_BASE_PATH || '',
// assetPrefix: process.env.NEXT_BASE_PATH || '',
// assetPrefix: process.env.RANCHER_SERVER || '',
// hostname: process.env.RANCHER_SERVER,
// images: {
// path: process.env.NEXT_PUBLIC_BASE_PATH || '',
// },
// publicRuntimeConfig: {
// hmrEndpoint: 'wss://'+process.env.RANCHER_SERVER+process.env.NEXT_PUBLIC_BASE_PATH,
// webSocketBasePath: 'wss://'+process.env.RANCHER_SERVER+process.env.NEXT_PUBLIC_BASE_PATH,
// }
// async rewrites() {
// return [
// {
// has: [
// {
// type: 'host',
// value: 'rancher.vzxy.net',
// },
// ],
// // source: '/:path*',
// source: '/',
// destination: '/k8s/clusters/c-m-6wzgb6p6/api/v1/namespaces/sammwise/services/http%3Asammwise%3A80/proxy/',
// },
// {
// has: [
// {
// type: 'host',
// value: 'rancher.vzxy.net',
// },
// ],
// source: '/about',
// destination: '/k8s/clusters/c-m-6wzgb6p6/api/v1/namespaces/sammwise/services/http%3Asammwise%3A80/proxy/about',
// },
// {
// has: [
// {
// type: 'host',
// value: 'rancher.vzxy.net',
// },
// ],
// source: '/assessment',
// destination: '/k8s/clusters/c-m-6wzgb6p6/api/v1/namespaces/sammwise/services/http%3Asammwise%3A80/proxy/assessment',
// },
// {
// has: [
// {
// type: 'host',
// value: 'rancher.vzxy.net',
// },
// ],
// source: '/assessment',
// destination: '/k8s/clusters/c-m-6wzgb6p6/api/v1/namespaces/sammwise/services/http%3Asammwise%3A80/proxy/assessment',
// },
// ]
// }
}