Skip to content

Commit

Permalink
replace: rewrites with assetPrefix
Browse files Browse the repository at this point in the history
  • Loading branch information
Saturn-V committed Feb 8, 2024
1 parent b9b024d commit 9dbb097
Showing 1 changed file with 46 additions and 46 deletions.
92 changes: 46 additions & 46 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
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: 'https://rancher.vzxy.net/k8s/clusters/c-m-6wzgb6p6/api/v1/namespaces/sammwise/services/http:sammwise:80/proxy',

// assetPrefix: process.env.RANCHER_SERVER || '',
// hostname: process.env.RANCHER_SERVER,
Expand All @@ -14,51 +14,51 @@ module.exports = {
// }


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: '/results',
destination: '/k8s/clusters/c-m-6wzgb6p6/api/v1/namespaces/sammwise/services/http%3Asammwise%3A80/proxy/results',
},
]
}
// 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/about',
// },
// {
// 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: '/results',
// destination: '/k8s/clusters/c-m-6wzgb6p6/api/v1/namespaces/sammwise/services/http%3Asammwise%3A80/proxy/results',
// },
// ]
// }
}


0 comments on commit 9dbb097

Please sign in to comment.