Skip to content
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

Runtime env var support #701

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Runtime env var support #701

wants to merge 10 commits into from

Conversation

tomski747
Copy link
Member

Related Issues

https://github.com/descope/etc/issues/8875

Description

  • Added runtime environment variable injection using env.js.
  • Updated docker-entrypoint.sh to generate env.js dynamically at runtime.
  • Modified Webpack configuration to include env.js and optimize runtime env handling.
  • Replaced hardcoded process.env with dynamically injected env values in the app.
  • Updated Dockerfile and Husky setup for improved build and linting workflows.

Changes

  • Files Added:
    • docker-entrypoint.sh
  • Files Modified:
    • Dockerfile
    • config-overrides.js
    • src/App.tsx
  • Files Deleted:
    • api/favicon.js

Notes

  • Ensures environment variables are dynamically set based on the deployment context.

Copy link

vercel bot commented Jan 21, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
auth-hosting ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 22, 2025 9:30am
auth-hosting-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 22, 2025 9:30am
auth-hosting-euc1 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 22, 2025 9:30am
auth-hosting-rc ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 22, 2025 9:30am
auth-hosting-sandbox ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 22, 2025 9:30am
auth-hosting-sandbox-us ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 22, 2025 9:30am
auth-hosting-star1 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 22, 2025 9:30am
auth-hosting-star2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 22, 2025 9:30am
nir-itai-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 22, 2025 9:30am

Copy link

vercel bot commented Jan 21, 2025

Your Vercel team allenzhou is not permitted to deploy from this git repository. Contact an administrator to add github organization descope as a Protected Git Scope in allenzhou on Vercel. Once added, commit again to see your changes.

Learn more: https://vercel.com/docs/security/protected-git-scopes

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.

1 participant