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

Allow CDN_PKG_PATH at runtime. #2466

Merged
merged 1 commit into from
Mar 28, 2024

Conversation

zakstucke
Copy link
Contributor

This PR implements runtime support for CDN_PKG_PATH, preferring it when available.
Beforehand, only build time would be read.

Why

In my case, my cdn path is categorised as a sensitive key, therefore only available at runtime later than the build stage.

@benwis
Copy link
Contributor

benwis commented Mar 26, 2024

I would lean towards a solution that kept the env var check during compile time, and could be overriden by an env var at runtime. This way both users get what they want

@zakstucke
Copy link
Contributor Author

@benwis could you elaborate? I read what you're saying to be exactly how I implemented it.

Before:
avail at build time ? use else default

After:
avail at run time ? use else before logic

@benwis
Copy link
Contributor

benwis commented Mar 28, 2024

I think you're right, I made a mistake with that. Jet lagged 8 hours in London is not helping. Thanks for the PR

@benwis benwis merged commit fd2817d into leptos-rs:main Mar 28, 2024
35 of 62 checks passed
@zakstucke zakstucke deleted the cdn-pkg-path-prefer-runtime-env branch March 28, 2024 10:37
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