Skip to content

Remove placeholder defaults from env templates#82

Merged
ryanbas21 merged 2 commits intomainfrom
fix-env-files
Jan 13, 2026
Merged

Remove placeholder defaults from env templates#82
ryanbas21 merged 2 commits intomainfrom
fix-env-files

Conversation

@ryanbas21
Copy link
Contributor

@ryanbas21 ryanbas21 commented Jan 2, 2026

https://pingidentity.atlassian.net/browse/SDKS-4446

Summary

  • Remove legacy VAR_NAME=$VAR_NAME pattern from all sample app environment templates
  • Replace with empty values (VAR_NAME=) to prevent literal $VAR_NAME strings from being populated at runtime

Background

The old pattern was a legacy from when sample apps were deployed through Docker. This is no longer the case, and the placeholders caused issues when users didn't want to use a variable - the literal string $VAR_NAME would be populated at runtime instead of an empty value.

Changes

Updated 8 .env.example files:

  • angular-todo/.env.example
  • angular-todo-davinci/.env.example
  • central-login-oidc/.env.example
  • embedded-login/.env.example
  • embedded-login-davinci/.env.example
  • reactjs-todo/.env.example
  • reactjs-todo-davinci/.env.example
  • todo-api/.env.example

Test plan

  • Linting passes across all workspaces
  • Angular app builds successfully
  • No =$VAR_NAME patterns remain in codebase

Notes

External documentation that references the old VAR_NAME=$VAR_NAME pattern will need to be updated separately.

Change VAR_NAME=$VAR_NAME pattern to VAR_NAME= in all sample app
environment templates. The old pattern was a legacy from Docker
deployments and caused literal $VAR_NAME strings to be populated
at runtime when variables were not set.
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm concerned if we leave comments on the same line we can run into the same problem. Can we move all comments to new lines?

Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need this?

Copy link
Contributor

Choose a reason for hiding this comment

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

Should be # instead of //?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can actually remove this comment now

Comment on lines 17 to 20
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we move these comments to new lines too?

Comment on lines 1 to 6
Copy link
Contributor

Choose a reason for hiding this comment

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

here too

@ryanbas21 ryanbas21 merged commit 9a676dc into main Jan 13, 2026
16 checks passed
@cerebrl cerebrl deleted the fix-env-files branch January 13, 2026 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments