Skip to content

Typo in .env.example - #5298

Merged
elias-ba merged 3 commits into
mainfrom
hotfix-stu-origin
Dec 4, 2026
Merged

elias-ba merged 3 commits into
mainfrom
hotfix-stu-origin

Conversation

@taylordowns2000

@taylordowns2000 taylordowns2000 commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

@stuartc , this maybe explains why I edited your email reply last night, and why you edited it back this morning? 🤦

The ENV variable that lightning reads is called CORS_ORIGIN (this is what we use in our deployments) and it looks like the .env.example was wrong.

(I'm assuming you were basing your CORS_ORIGINS—with an S at the end—concept on the example; I was looking at the underlying code and the deployment repo. I'm sure this is not the first time it's tripped someone up?)

@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown

Security Review ✅

  • S0 (project scoping): N/A, no data access or query changes — the PR only edits .env.example and CHANGELOG.md.
  • S1 (authorization): N/A, no new or modified web-layer actions, controllers, or policies.
  • S2 (audit trail): N/A, no changes to config-resource writes or persistence code.

@elias-ba elias-ba 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.

@taylordowns2000 @stuartc I am approving and merging this one. It is the simplest and cheapest fix and the right one for now since every deployment already uses CORS_ORIGIN.

I wonder if the singular name is part of why this keeps tripping people up, because it hides that the variable takes a list of origins. We could read CORS_ORIGINS and keep CORS_ORIGIN as a deprecated fallback for a release or two. Happy to open an issue for it if you guys think this matters, I am not sure it does.

@codecov

codecov Bot commented Dec 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.9%. Comparing base (b8ff7ce) to head (ab2b229).

Additional details and impacted files
@@           Coverage Diff           @@
##            main   #5298     +/-   ##
=======================================
- Coverage   91.9%   91.9%   -0.0%     
=======================================
  Files        482     482             
  Lines      24481   24481             
=======================================
- Hits       22490   22489      -1     
- Misses      1991    1992      +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@elias-ba
elias-ba merged commit 4d15430 into main Dec 4, 2026
8 of 9 checks passed
@elias-ba
elias-ba deleted the hotfix-stu-origin branch December 4, 2026 05:09
@github-project-automation github-project-automation Bot moved this from New Issues to Done in Core Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants