Skip to content
Gallery
nytgames
CreativeTech Wiki (internal)
Share
Explore
Advertising Website

icon picker
Front-end

Follow these instruction to run locally the Next.js app powering the website.

Documentation

Our application uses , version 12. You can read its documentation
, in case there are differences with the current version 13.

Type of build

The application is , 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

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 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
.

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
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.