Skip to main content
Apply for a Cheap Website
Website explainer · 1:47

Environment Variables Explained: Settings Outside Your Website Code

How can the same code use different service settings? Environment variables provide named configuration values to a process.

Jersey Web video: Same code. Different settings.

1:47 · No narration: the video shows each step as text on screen, and every step is written out below, with buttons that jump the video to it.

Download the on-screen text track (VTT)

The six points in the video

This is a silent video. The headings, explanations and labels below reproduce the information on screen.

  1. Step 1: A variable has a name and value

    The application reads the named setting when it needs it.

    On-screen labels: Setting name; Configured value; Application use.

  2. Step 2: Environments can differ

    A test environment can use different values from production.

    On-screen labels: Local development; Preview settings; Production settings.

  3. Step 3: Check when the value is read

    A value may be used during a build or while the application runs.

    On-screen labels: Build-time use; Runtime use; Framework behaviour.

  4. Step 4: Some values are sensitive

    Tokens and credentials need protected storage and restricted access.

    On-screen labels: Private credentials; Protected storage; Limited access.

  5. Step 5: Browser values are public

    A value included in downloaded website code can be inspected.

    On-screen labels: Browser bundle; Visible configuration; No private secrets.

  6. Step 6: Check how changes take effect

    Follow the platform process and test the updated deployment.

    On-screen labels: Correct environment; Required rebuild; Verified behaviour.

A practical check for your business

Keep a documented inventory of required configuration names and who maintains their values. Review which values may reach the browser and use the platform's supported protection for sensitive settings.

Sources and further detail

Common questions

How can the same code use different service settings?

Environment variables provide named configuration values to a process. Know which settings are public and which must stay private.

Go further

Guide Read the practical guide More context for planning and maintaining your business website. 5 min read → Jargon Buster Environment variable explained Read the related Jargon Buster explanation. Read the explanation →

Know which settings are public and which must stay private.

Tell Jersey Web what your website needs to do and which part you want help with.

Talk to Jersey Web →

More video tips

All 205 videos →
Length 1:47 Website development

API Keys Explained: Scope, Restrictions and Safer Website Integration

A service credential, explained.
Length 1:47 Website development

Software Dependencies Explained: The Other Code Your Website Uses

Dependencies, explained.
Length 1:47 Website development

What Is a Package Manager? Installing and Tracking Website Dependencies

Package managers, explained.