Skip to content

Commit

Permalink
remove rewrites
Browse files Browse the repository at this point in the history
  • Loading branch information
Saturn-V committed Feb 7, 2024
1 parent 017ffec commit 9bac964
Showing 1 changed file with 48 additions and 48 deletions.
96 changes: 48 additions & 48 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,54 +14,54 @@ module.exports = {
// }


async rewrites() {
return [
{
source: '/',
destination: process.env.RANCHER_SERVER+process.env.NEXT_BASE_PATH // Proxy to Backend
},
{
has: [
{
type: 'host',
value: process.env.RANCHER_SERVER,
},
],
source: '/',
destination: process.env.RANCHER_SERVER+process.env.NEXT_BASE_PATH // Proxy to Backend
},
{
has: [
{
type: 'host',
value: process.env.RANCHER_SERVER,
},
],
source: '/about',
destination: process.env.RANCHER_SERVER+process.env.NEXT_BASE_PATH + '/about' // Proxy to Backend
},
{
has: [
{
type: 'host',
value: process.env.RANCHER_SERVER,
},
],
source: '/assessment',
destination: process.env.RANCHER_SERVER+process.env.NEXT_BASE_PATH + '/assessment' // Proxy to Backend
},
{
has: [
{
type: 'host',
value: process.env.RANCHER_SERVER,
},
],
source: '/results',
destination: process.env.RANCHER_SERVER+process.env.NEXT_BASE_PATH + '/results' // Proxy to Backend
}
]
}
// async rewrites() {
// return [
// {
// source: '/',
// destination: process.env.RANCHER_SERVER+process.env.NEXT_BASE_PATH // Proxy to Backend
// },
// {
// has: [
// {
// type: 'host',
// value: process.env.RANCHER_SERVER,
// },
// ],
// source: '/',
// destination: process.env.RANCHER_SERVER+process.env.NEXT_BASE_PATH // Proxy to Backend
// },
// {
// has: [
// {
// type: 'host',
// value: process.env.RANCHER_SERVER,
// },
// ],
// source: '/about',
// destination: process.env.RANCHER_SERVER+process.env.NEXT_BASE_PATH + '/about' // Proxy to Backend
// },
// {
// has: [
// {
// type: 'host',
// value: process.env.RANCHER_SERVER,
// },
// ],
// source: '/assessment',
// destination: process.env.RANCHER_SERVER+process.env.NEXT_BASE_PATH + '/assessment' // Proxy to Backend
// },
// {
// has: [
// {
// type: 'host',
// value: process.env.RANCHER_SERVER,
// },
// ],
// source: '/results',
// destination: process.env.RANCHER_SERVER+process.env.NEXT_BASE_PATH + '/results' // Proxy to Backend
// }
// ]
// }
}


0 comments on commit 9bac964

Please sign in to comment.