diff --git a/src/helpers/setUpRedirects.js b/src/helpers/setUpRedirects.js index 0fdcb742..3dc83fe6 100644 --- a/src/helpers/setUpRedirects.js +++ b/src/helpers/setUpRedirects.js @@ -9,6 +9,13 @@ const setUpRedirects = function ({ netlifyConfig }) { to: '/.netlify/functions/angular-builder', status: 200, }) + // This redirect is here to handle the "index" default redirection + netlifyConfig.redirects.push({ + from: '/', + to: '/.netlify/functions/angular-builder', + force: true, + status: 200, + }) } module.exports = setUpRedirects