Skip to content

Commit

Permalink
fix: 환경변수 적용되지 않는 현상
Browse files Browse the repository at this point in the history
  • Loading branch information
junyeokk committed May 13, 2024
1 parent 0363017 commit 8b88f45
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script async src="https://www.googletagmanager.com/gtag/js?id=<%= VITE_GOOGLE_ANALYTICS %>"></script>
<script>
<script type="module">
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "%import.meta.env.VITE_GOOGLE_ANALYTICS%");

const GOOGLE_ANALYTICS = import.meta.env.VITE_GOOGLE_ANALYTICS;
gtag("config", GOOGLE_ANALYTICS);
</script>
<title>2024 경북대 대동제, 하푸르나</title>
</head>
Expand Down

0 comments on commit 8b88f45

Please sign in to comment.