Skip to content

Environment: Add env.js to data and set NODE_ENV var#115

Merged
natalialuzuriaga merged 1 commit into
mainfrom
DSACMS/nat/search
Mar 10, 2026
Merged

Environment: Add env.js to data and set NODE_ENV var#115
natalialuzuriaga merged 1 commit into
mainfrom
DSACMS/nat/search

Conversation

@natalialuzuriaga

@natalialuzuriaga natalialuzuriaga commented Mar 10, 2026

Copy link
Copy Markdown
Contributor

Environment: Add env.js to data and set NODE_ENV var

Problem

Currently, all pages contain <meta name="robots" content="noindex, nofollow">, which is determined by env.production. We would like to set the env.production variable properly.

Solution

  • Create a env.js file which contains NODE_ENV which selects the type of environment
  • Set NODE_ENV in the deploy.yml job

Result

With the environment set to production, content will no longer be set to noindex and nofollow.

Test Plan

Tested using personal fork and works! natalialuzuriaga.github.io/ospo_guide

Signed-off-by: Natalia Luzuriaga <natalia.luzuriaga@cms.hhs.gov>

@decause-gov decause-gov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM +1 🚢

@natalialuzuriaga natalialuzuriaga merged commit c816f06 into main Mar 10, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants