Issues using import-meta-env/unplugin with webpack when running SSL locally #1373
Unanswered
myqB-Emily
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
On several Angular projects I'm using import-meta-env, extending the angular.json and using the unplugin plugin. I ran into an issue with a project that had to be run w/ https locally. I isolated the issue, as soon as we added ssl to the angular.json file, or added the ssl command directly to the build we no longer had access to the runtime generated variables.
I have a working solution right now, but it's not ideal. Currently I'm copying index.html to a temp directory, injecting the variables and using compile-time transform mode before running the dev server. This works, but I'm wondering if the issues with SSL are expected.
Thank you for any help or thoughts. Maybe this will help somebody running into the same issue.
Beta Was this translation helpful? Give feedback.
All reactions