diff --git a/frontend/next.config.js b/frontend/next.config.js index 301857f516..9ddb004802 100644 --- a/frontend/next.config.js +++ b/frontend/next.config.js @@ -65,7 +65,18 @@ module.exports = async phase => { source: '/:user/:repo/_', destination: '/:user/:repo', permanent: true, - } + }, + // Make the 1-click-bom.tsv file accessible to the 1-click-bom extension. + { + source: '/:user/:repo/:project/1-click-BOM.tsv', + destination: `${process.env.KITSPACE_PROCESSOR_URL}/files/:user/:repo/HEAD/:project/1-click-BOM.tsv`, + permanent: true, + }, + { + source: '/:user/:repo/1-click-BOM.tsv', + destination: `${process.env.KITSPACE_PROCESSOR_URL}/files/:user/:repo/HEAD/_/1-click-BOM.tsv`, + permanent: true, + }, ] }, async rewrites() {