Skip to content

Commit

Permalink
Merge pull request #169 from OperationSpark/add-hs-redirect
Browse files Browse the repository at this point in the history
add redirect for `/high-school`
  • Loading branch information
ptbarnum4 authored Aug 16, 2024
2 parents 57b5823 + 1790a16 commit 71281a0
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit 71281a0

Please sign in to comment.