First, run the development server:
npm run dev
Open http://localhost:3000 with your browser to see the result.
- First create a GC Notify Account
- Once you have your account created ask to be added to the Alpha Site account
- Set the following environment variables (definitions below )
REPORT_A_PROBLEM_ENABLED
,NOTIFY_REPORT_A_PROBLEM_TEMPLATE_ID
,NOTIFY_REPORT_A_PROBLEM_EMAIL
,NOTIFY_API_KEY
,NOTIFY_BASE_API_URL
- Start application as usual
Here is a list of all the environment variables used to configure the application along with what they do.
REPORT_A_PROBLEM_ENABLED
: Feature flag for the report a problem API to enable sending to GC Notify. Leave undefined if you do not want to enable this.
NOTIFY_REPORT_A_PROBLEM_TEMPLATE_ID
: The Notify template ID for the report a problem email template
NOTIFY_REPORT_A_PROBLEM_EMAIL
: The email to send it too
NOTIFY_API_KEY
: The Notify API key
NOTIFY_BASE_API_URL
: The base url for the Notify api. This value should be https://api.notification.canada.ca
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!