Skip to content
Open
Show file tree
Hide file tree
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions org-cyf-guides/content/deploying/cyf/backend/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,27 @@ If you want to deploy from a branch that isn't `main`, you need to configure thi

![Configure git branch](customise-branch.png)

## Add NODE_ENV to Your Project

**Required for:** All Node.js projects (anything that has a `package.json` file)

### Steps

1. Click on **"Environment Variables"** in the left sidebar
2. Click the **"+ Add"** button

![Environment Variables](click_environment_variables.png)

3. Fill in the form:
- **Name:** `NODE_ENV`
- **Value:** `{{team.NODE_ENV}}`
- Make sure **"Available at Build time" is not checked** ❌
- Make sure **"Available at Runtime"** is checked ✅

![Fill the new environment variables form](fill_the_form.png)

4. Click **"Save"**

## Deploying the backend

When everything is configured correctly, press the **Deploy** button:
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions org-cyf-guides/content/deploying/cyf/frontend/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,27 @@ If you want to deploy from a branch that isn't `main`, you need to configure thi

![Configure git branch](customise-branch.png)

## Add NODE_ENV to Your Project

**Required for:** All Node.js projects (anything that has a `package.json` file)

### Steps

1. Click on **"Environment Variables"** in the left sidebar
2. Click the **"+ Add"** button

![Environment Variables](click_environment_variables.png)

3. Fill in the form:
- **Name:** `NODE_ENV`
- **Value:** `{{team.NODE_ENV}}`
- Make sure **"Available at Build time" is not checked** ❌
- Make sure **"Available at Runtime"** is checked ✅

![Fill the new environment variables form](fill_the_form.png)

4. Click **"Save"**

## Deploying the frontend

When everything is configured correctly, press the **Deploy** button:
Expand Down
Loading