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

Load the appinsights connectionstring from an environment variable #503

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

Karlo-Emilo
Copy link
Collaborator

No description provided.

@Karlo-Emilo Karlo-Emilo linked an issue Jun 25, 2024 that may be closed by this pull request
@Karlo-Emilo Karlo-Emilo marked this pull request as draft June 25, 2024 16:23
@Karlo-Emilo
Copy link
Collaborator Author

This works when I build it locally with:

APP_INSIGHTS_INSTRUMENTATION_KEY=1234 node prepEnv.js simple && vite build

The key is now available for the client when I serve it (http-server dist).

Todo: Make a commit that prints the key in main.ts to check if it is available for the client when built on Azure.

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.

Save the appinsights connectionString in an environment variable
1 participant