Skip to content

Commit

Permalink
seo: add ga_key env
Browse files Browse the repository at this point in the history
  • Loading branch information
danstarns committed Jun 7, 2024
1 parent 719ae9d commit 3558a23
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
METADATA_BASE_URL=http://localhost:4000
EMAIL_SENDER_ADDRESS=""
EMAIL_SENDER_PASSWORD=""
EMAIL_HOST=""
EMAIL_HOST=""
GA_KEY=""
2 changes: 1 addition & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const metadata: Metadata = {
};

const previewGoogleAnalytics = {
analytics: "G-C14HJ0PDRJ",
analytics: process.env.GA_KEY || "",
};

const googleId = previewGoogleAnalytics;
Expand Down
1 change: 1 addition & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
const nextConfig = {
env: {
METADATA_BASE_URL: process.env.METADATA_BASE_URL,
GA_KEY: process.env.GA_KEY,
},
images: {
remotePatterns: [
Expand Down

0 comments on commit 3558a23

Please sign in to comment.