diff --git a/frontend/next.config.js b/frontend/next.config.js index 6baed70f8d..5215715101 100644 --- a/frontend/next.config.js +++ b/frontend/next.config.js @@ -58,19 +58,19 @@ module.exports = async phase => { ], }, async redirects() { - const hack = 'http://abdo-dev.staging.kitspace.dev' + const processorURLWithoutSSL = `http://processor.${process.env.KITSPACE_DOMAIN}${process.env.KITSPACE_EXTERNAL_PORT}` // we use "_" as the project name when there is only one project but we // don't want it to appear in the URL of the project page return [ // Make the 1-click-bom.tsv file accessible to the 1-click-bom extension. { source: '/:user/:repo/:project/1-click-BOM.tsv', - destination: `${hack}/files/:user/:repo/HEAD/:project/1-click-BOM.tsv`, + destination: `${processorURLWithoutSSL}/files/:user/:repo/HEAD/:project/1-click-BOM.tsv`, permanent: true, }, { source: '/:user/:repo/1-click-BOM.tsv', - destination: `${hack}/files/:user/:repo/HEAD/_/1-click-BOM.tsv`, + destination: `${processorURLWithoutSSL}/files/:user/:repo/HEAD/_/1-click-BOM.tsv`, permanent: true, }, {