From 9bac9641529fdbab7efd4d8cf1f51e54b65e45ae Mon Sep 17 00:00:00 2001 From: Saturn-V Date: Wed, 7 Feb 2024 10:08:31 -0800 Subject: [PATCH] remove rewrites --- next.config.js | 96 +++++++++++++++++++++++++------------------------- 1 file changed, 48 insertions(+), 48 deletions(-) diff --git a/next.config.js b/next.config.js index d898733..a6d20f7 100644 --- a/next.config.js +++ b/next.config.js @@ -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 + // } + // ] + // } }