Skip to content

Commit

Permalink
fix: rewrites
Browse files Browse the repository at this point in the history
  • Loading branch information
Saturn-V committed Feb 7, 2024
1 parent 62fa813 commit 1fc4890
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,15 @@ module.exports = {

async rewrites() {
return [
// {
// source: '/',
// destination: process.env.RANCHER_SERVER+process.env.NEXT_BASE_PATH // Proxy to Backend
// },
{
has: [
{
type: 'host',
value: 'https://rancher.vzxy.net' || process.env.RANCHER_SERVER,
value: 'rancher.vzxy.net',
},
],
source: '/:path*',
destination: '/k8s/clusters/c-m-6wzgb6p6/api/v1/namespaces/sammwise/services/http:sammwise:80/proxy/:path*' || process.env.RANCHER_SERVER,
// basePath: false,
destination: '/k8s/clusters/c-m-6wzgb6p6/api/v1/namespaces/sammwise/services/http%3Asammwise%3A80/proxy/:path*',
},
]
}
Expand Down

0 comments on commit 1fc4890

Please sign in to comment.