Skip to content

Commit

Permalink
It's SSL indeed
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdulrhmnGhanem committed Nov 16, 2022
1 parent f56b6d7 commit 9bb6a19
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
{
Expand Down

0 comments on commit 9bb6a19

Please sign in to comment.