Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add redirect for /high-school #169

Merged
merged 2 commits into from
Aug 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading