Skip to content

Conversation

atyrode
Copy link
Contributor

@atyrode atyrode commented Apr 29, 2025

This addresses #49 and #17. The AuthGate.tsx file use to have an hardcoded value looping back to https://coder.pad.ws. It now reads from the CODER_URL environment variable that's provided at build time.
The vite.config.mts file was added to map the variable to work with Vite, for devs.

atyrode added 3 commits April 29, 2025 21:18
- Modified AuthGate component to retrieve Coder URL from environment variable instead of hardcoding.
- Added new CODER_URL definition in env.d.ts for better configuration management.
- Updated vite.config.mts to load environment variables based on the current mode, allowing for better configuration management.
- Made CODER_URL available through import.meta.env for improved flexibility in accessing environment-specific settings.
- Changed the environment variable reference in AuthGate from VITE_CODER_URL to CODER_URL for consistency with the updated configuration management.
@atyrode atyrode merged commit 3793768 into main Apr 29, 2025
1 check passed
@atyrode atyrode deleted the authgate-hardcoded-fix branch April 29, 2025 21:32
@atyrode atyrode restored the authgate-hardcoded-fix branch April 29, 2025 21:47
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