JavaScript required
We’re sorry, but Coda doesn’t work properly without JavaScript enabled.
Skip to content
Gallery
CreativeTech Wiki (internal)
creativeTECH Wiki
More
Share
Explore
Advertising Website
Front-end
Follow these instruction to run locally the Next.js app powering the website.
Documentation
Our application uses
Next.js
, version 12. You can read its documentation
here
, in case there are differences with the current version 13.
Type of build
The application is
exported to static HTML
, which can be run standalone without the need of a Node.js server. Please be aware of the unsupported server side feature of this type of build.
Setup
Clone repository
Clone repository from
https://github.com/nytimes/infosec-stink
.
Create a new branch from
main
, following this pattern.
feature/<feature-name>
If you are working on a
Jira ticket
, add its reference to the feature name string.
feature/<ADPL-1234>-<feature-name>
Add dotenv file
Get the
.env.local
file from
nytimes/infosec-stink/secret/dotenv_dev.b64
in Vault. Decode it and and save into the
/web
folder. For example:
base64
-D
-i
dotenv_env.b64
>
.env.local
Check the dotenv file values
For example,
DEPLOY_ENV
should be
dev
while on development.
CONTACT_FORM_DEBUG_EMAIL
can be your personal email.
Connect to our corporate VPN
To run the app locally,
you need to be connected to our corporate VPN.
Find more information
here
.
Install the web dependencies
Move your terminal to
/web
and install the dependencies:
npm i
Run the project
Run the local app from
/web
with:
npm run dev
Documentation
Type of build
Setup
Clone repository
Add dotenv file
Connect to our corporate VPN
Install the web dependencies
Run the project
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
Ctrl
P
) instead.