Skip to content

Add build script to inject env vars at runtime #128

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 11, 2025

Conversation

dragosgd
Copy link
Contributor

@dragosgd dragosgd commented Jun 5, 2025

Purpose

Refactor frontend build to support runtime environment variables

Changes

  • Move from build-time to runtime environment variable injection
  • Add build-and-serve.sh script that builds then serves the application
  • Switch from multi-stage to single-stage Dockerfile for runtime builds
  • Environment variables (TOKEN_ID, BACKEND_URL) now configured at deployment time
  • Enables single image for multiple environments

Checklist

  • My code follows the style of this project.
  • The code compiles without warnings.
  • I have performed a self-review of the changes.
  • I have documented my code, in particular the intent of the
    hard-to-understand areas.
  • (If necessary) I have updated the CHANGELOG.

CLA acceptance

By submitting the contribution I accept the terms and conditions of the
Contributor License Agreement v1.0

@dragosgd dragosgd requested a review from EmilKWarmdahl June 5, 2025 09:22
@dragosgd dragosgd self-assigned this Jun 5, 2025
@dragosgd dragosgd merged commit 4deaf12 into main Jun 11, 2025
67 checks passed
@dragosgd dragosgd deleted the AllowListdAppRuntimeVars branch June 11, 2025 07:39
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