Skip to content

Load the appinsights connectionstring from an environment variable#503

Draft
Karlo-Emilo wants to merge 6 commits intomainfrom
489-save-the-appinsights-connectionstring-in-an-environment-variable
Draft

Load the appinsights connectionstring from an environment variable#503
Karlo-Emilo wants to merge 6 commits intomainfrom
489-save-the-appinsights-connectionstring-in-an-environment-variable

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