diff --git a/AGENTS.md b/AGENTS.md index 255d903..198762d 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -19,6 +19,14 @@ Use Astro conventions: --- +## Astro Rules + +- Use Astro stable APIs only +- Do not use experimental features +- Avoid latest syntax unless verified + +--- + ## Rules Prefer: diff --git a/src/components/GoogleTag.astro b/src/components/GoogleTag.astro new file mode 100644 index 0000000..b52c3e3 --- /dev/null +++ b/src/components/GoogleTag.astro @@ -0,0 +1,27 @@ +--- +// Frontmatter 영역에서 프로덕션 환경인지 확인 +const isProd = import.meta.env.PROD; +--- + +{ + isProd && ( + <> + {/* Google tag (gtag.js) */} + +