-
Notifications
You must be signed in to change notification settings - Fork 3
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
Next.js + Vercel! ▲ #1
base: latest
Are you sure you want to change the base?
Changes from 41 commits
8917b5d
b918444
245e395
2d90607
c9ff0a9
6eba7bb
8775285
eb4b6fd
5d255a3
d903cb0
cd2a576
b2bd31e
97f7432
165e4e3
1b223e4
80dfa76
ba2a0ed
52fef75
cc7b0b9
55bc771
a896926
5de5fb4
5bacb15
8f5bc94
5431714
6128a03
f418e99
0831d7f
7c851d7
cb6b004
ba19ae5
fe51f71
75b33a1
b597af4
9edee97
ba9fe1b
05ba343
71c9f66
c8311b7
1b0a2ea
3c36090
7d80311
c7d1914
2aeb8e4
483c5b9
fe685bf
5441a38
bee1f79
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
## NB only variables prefixed with NEXT_PUBLIC_SIMORGH_ are available on both the server and client | ||
NEXT_PUBLIC_SIMORGH_BASE_URL=http://localhost:3000 | ||
NEXT_PUBLIC_SIMORGH_PUBLIC_STATIC_ASSETS_ORIGIN=http://localhost:3000 | ||
NEXT_PUBLIC_SIMORGH_PUBLIC_STATIC_ASSETS_PATH=/static/ | ||
NEXT_PUBLIC_SIMORGH_ATI_BASE_URL=https://logws1363.ati-host.net? | ||
NEXT_PUBLIC_SIMORGH_CONFIG_URL=https://config.test.api.bbci.co.uk/ | ||
NEXT_PUBLIC_SIMORGH_INCLUDES_BASE_URL=https://www.test.bbc.com/ws/includes | ||
NEXT_PUBLIC_SIMORGH_INCLUDES_BASE_AMP_URL=https://news.test.files.bbci.co.uk | ||
NEXT_PUBLIC_SIMORGH_ICHEF_BASE_URL=https://ichef.bbci.co.uk | ||
LOG_DIR='log' | ||
LOG_LEVEL='debug' | ||
LOG_TO_CONSOLE=true | ||
NEXT_PUBLIC_SIMORGH_APP_ENV=local | ||
NEXT_PUBLIC_SIMORGH_CONFIG_CACHE_ITEMS=100 | ||
NEXT_PUBLIC_SIMORGH_CONFIG_CACHE_MAX_AGE_SECONDS=60 | ||
NEXT_PUBLIC_SIMORGH_CONFIG_TIMEOUT_SECONDS=5 | ||
SERVER_KEEP_ALIVE_TIMEOUT=61000 | ||
SERVER_HEADERS_TIMEOUT=65000 | ||
NEXT_PUBLIC_SIMORGH_MOST_READ_CDN_URL=http://localhost:3000 | ||
|
||
## CW Custom Metrics Configuration | ||
AWS_EMF_SERVICE_NAME=Simorgh | ||
AWS_EMF_LOG_GROUP_NAME=SimorghServer | ||
AWS_EMF_ENVIRONMENT=Local | ||
|
||
## WebVitals Reporting | ||
NEXT_PUBLIC_SIMORGH_WEBVITALS_REPORTING_ENDPOINT=https://europe-west1-bbc-otg-traf-mgr-bq-dev-4105.cloudfunctions.net/report-endpoint | ||
NEXT_PUBLIC_SIMORGH_WEBVITALS_DEFAULT_SAMPLING_RATE=100 | ||
|
||
NEXT_PUBLIC_SIMORGH_CSP_REPORTING_ENDPOINT=https://ws.bbc-reporting-api.app/report-endpoint | ||
|
||
NEXT_PUBLIC_SIMORGH_OPTIMIZELY_SDK_KEY=LptPKDnHyAFu9V12s5xCz | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
## NB only variables prefixed with NEXT_PUBLIC_SIMORGH_ are available on both the server and client | ||
NEXT_PUBLIC_SIMORGH_BASE_URL=https://www.bbc.com | ||
NEXT_PUBLIC_SIMORGH_PUBLIC_STATIC_ASSETS_ORIGIN=https://static.files.bbci.co.uk | ||
NEXT_PUBLIC_SIMORGH_PUBLIC_STATIC_ASSETS_PATH=/ws/simorgh-assets/public/ | ||
NEXT_PUBLIC_SIMORGH_ATI_BASE_URL=https://a1.api.bbc.co.uk/hit.xiti? | ||
NEXT_PUBLIC_SIMORGH_CONFIG_URL=https://config.api.bbci.co.uk/ | ||
NEXT_PUBLIC_SIMORGH_INCLUDES_BASE_URL=https://www.bbc.com/ws/includes | ||
NEXT_PUBLIC_SIMORGH_INCLUDES_BASE_AMP_URL=https://news.files.bbci.co.uk | ||
NEXT_PUBLIC_SIMORGH_ICHEF_BASE_URL=https://ichef.bbci.co.uk | ||
LOG_DIR='/var/log/simorgh' | ||
LOG_LEVEL='info' | ||
LOG_TO_CONSOLE=false | ||
NEXT_PUBLIC_SIMORGH_APP_ENV=live | ||
NEXT_PUBLIC_SIMORGH_CONFIG_CACHE_ITEMS=100 | ||
NEXT_PUBLIC_SIMORGH_CONFIG_CACHE_MAX_AGE_SECONDS=60 | ||
NEXT_PUBLIC_SIMORGH_CONFIG_TIMEOUT_SECONDS=1 | ||
SERVER_KEEP_ALIVE_TIMEOUT=61000 | ||
SERVER_HEADERS_TIMEOUT=65000 | ||
NEXT_PUBLIC_SIMORGH_MOST_READ_CDN_URL=https://web-cdn.api.bbci.co.uk | ||
|
||
## CW Custom Metrics Configuration | ||
AWS_EMF_SERVICE_NAME=Simorgh | ||
AWS_EMF_LOG_GROUP_NAME=SimorghServer | ||
AWS_EMF_ENVIRONMENT=EC2 | ||
|
||
## WebVitals Reporting | ||
NEXT_PUBLIC_SIMORGH_WEBVITALS_REPORTING_ENDPOINT=https://europe-west1-bbc-otg-traf-mgr-bq-prod-4591.cloudfunctions.net/report-endpoint | ||
NEXT_PUBLIC_SIMORGH_WEBVITALS_DEFAULT_SAMPLING_RATE=20 | ||
|
||
NEXT_PUBLIC_SIMORGH_CSP_REPORTING_ENDPOINT=https://ws.bbc-reporting-api.app/report-endpoint | ||
|
||
NEXT_PUBLIC_SIMORGH_OPTIMIZELY_SDK_KEY=4Rje1JY7YY1FhaiHJ88Zi |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
## NB only variables prefixed with NEXT_PUBLIC_SIMORGH_ are available on both the server and client | ||
NEXT_PUBLIC_SIMORGH_BASE_URL=https://www.test.bbc.com | ||
NEXT_PUBLIC_SIMORGH_PUBLIC_STATIC_ASSETS_ORIGIN=https://static.test.files.bbci.co.uk | ||
NEXT_PUBLIC_SIMORGH_PUBLIC_STATIC_ASSETS_PATH=/ws/simorgh-assets/public/ | ||
NEXT_PUBLIC_SIMORGH_ATI_BASE_URL=https://logws1363.ati-host.net? | ||
NEXT_PUBLIC_SIMORGH_CONFIG_URL=https://config.test.api.bbci.co.uk/ | ||
NEXT_PUBLIC_SIMORGH_INCLUDES_BASE_URL=https://www.test.bbc.com/ws/includes | ||
NEXT_PUBLIC_SIMORGH_INCLUDES_BASE_AMP_URL=https://news.test.files.bbci.co.uk | ||
NEXT_PUBLIC_SIMORGH_ICHEF_BASE_URL=https://ichef.test.bbci.co.uk | ||
LOG_DIR='/var/log/simorgh' | ||
LOG_LEVEL='debug' | ||
LOG_TO_CONSOLE=false | ||
NEXT_PUBLIC_SIMORGH_APP_ENV=test | ||
NEXT_PUBLIC_SIMORGH_CONFIG_CACHE_ITEMS=100 | ||
NEXT_PUBLIC_SIMORGH_CONFIG_CACHE_MAX_AGE_SECONDS=60 | ||
NEXT_PUBLIC_SIMORGH_CONFIG_TIMEOUT_SECONDS=1 | ||
SERVER_KEEP_ALIVE_TIMEOUT=61000 | ||
SERVER_HEADERS_TIMEOUT=65000 | ||
NEXT_PUBLIC_SIMORGH_MOST_READ_CDN_URL=https://web-cdn.test.api.bbci.co.uk | ||
|
||
## CW Custom Metrics Configuration | ||
AWS_EMF_SERVICE_NAME=Simorgh | ||
AWS_EMF_LOG_GROUP_NAME=SimorghServer | ||
AWS_EMF_ENVIRONMENT=EC2 | ||
|
||
## WebVitals Reporting | ||
NEXT_PUBLIC_SIMORGH_WEBVITALS_REPORTING_ENDPOINT=https://europe-west1-bbc-otg-traf-mgr-bq-dev-4105.cloudfunctions.net/report-endpoint | ||
NEXT_PUBLIC_SIMORGH_WEBVITALS_DEFAULT_SAMPLING_RATE=100 | ||
|
||
NEXT_PUBLIC_SIMORGH_CSP_REPORTING_ENDPOINT=https://ws.bbc-reporting-api.app/report-endpoint | ||
|
||
NEXT_PUBLIC_SIMORGH_OPTIMIZELY_SDK_KEY=LptPKDnHyAFu9V12s5xCz |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,4 +25,5 @@ yarn-error.log | |
!.yarn/sdks | ||
!.yarn/versions | ||
secret.env | ||
tsconfig.tsbuildinfo | ||
tsconfig.tsbuildinfo | ||
.next |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v12.18.4 | ||
14 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The move to Next.js didn't require this. Running anything below Node 14 is painful on an M1 Mac, so it was bumped up. |
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All of these env files moved from an
envConfig
folder, got renamed to work with Next.js's dotenv convention, and all variables used on the client got prefixed withNEXT_PUBLIC_
.