diff --git a/next.config.js b/next.config.js index dcb0c304..68c4f6b8 100644 --- a/next.config.js +++ b/next.config.js @@ -6,7 +6,8 @@ const { validateData } = require('./data/validate'); const { OVERRIDE_NODE_ENV = '', FB_PIXEL_ID, - HIGHSCHOOL_FORM_ACTIVE_UNTIL, + // Default to current date if not set + HIGHSCHOOL_FORM_ACTIVE_UNTIL = new Date().toISOString(), HIGHSCHOOL_FORM_RESPONSES_NAME = '__TAB_NAME_NOT_SET__', } = process.env; @@ -92,6 +93,18 @@ module.exports = (phase, { defaultConfig }) => { permanent: false, }, + // High School Program + { + source: '/high-school', + destination: '/programs/highschool', + permanent: true, + }, + { + source: '/highschool', + destination: '/programs/highschool', + permanent: true, + }, + /** * High School Application - `/programs/highschool/apply` * - When high school form is available, set env variable 'HIGHSCHOOL_FORM_ACTIVE' to 'true' otherwise 'false'