Skip to content

Commit 72141f5

Browse files
Simplify GTM configuration - no env vars needed
- GTM IDs are public, no need for environment variables - Hardcoded placeholder GTM ID directly in component - GTM disabled in development mode - Removed .env files since they're not needed - Simply replace GTM-XXXXXX with actual ID when ready 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 2c389b6 commit 72141f5

File tree

5 files changed

+77
-9
lines changed

5 files changed

+77
-9
lines changed

.claude/settings.local.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
{
22
"permissions": {
33
"allow": [
4-
"WebFetch(domain:tinywow.com)",
54
"Bash(pnpm run:*)",
65
"Bash(pnpm dev:*)",
7-
"Bash(ls:*)"
6+
"Bash(ls:*)",
7+
"Bash(gh run list:*)",
8+
"Bash(gh workflow:*)",
9+
"Bash(gh run view:*)"
810
],
911
"deny": []
1012
}

.env.example

Lines changed: 0 additions & 3 deletions
This file was deleted.

components/GoogleTagManager.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
import { GoogleTagManager } from '@next/third-parties/google';
44

55
export function GTM() {
6-
// You'll need to replace this with your actual GTM ID
7-
const gtmId = process.env.NEXT_PUBLIC_GTM_ID || 'GTM-XXXXXX';
6+
// Replace with your actual GTM ID
7+
const gtmId = 'GTM-XXXXXX';
88

9-
if (!gtmId || gtmId === 'GTM-XXXXXX') {
10-
console.warn('Google Tag Manager ID not configured');
9+
// Return null in development or when GTM ID is placeholder
10+
if (process.env.NODE_ENV === 'development' || gtmId === 'GTM-XXXXXX') {
1111
return null;
1212
}
1313

public/robots.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# *
2+
User-agent: *
3+
Allow: /
4+
Disallow: /dev
5+
6+
# Host
7+
Host: https://serptools.github.io
8+
9+
# Sitemaps
10+
Sitemap: https://serptools.github.io/sitemap.xml

public/sitemap.xml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
3+
<url><loc>https://serptools.github.io/tools/arw-to-jpg</loc><lastmod>2025-08-09T17:34:53.159Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
4+
<url><loc>https://serptools.github.io</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>daily</changefreq><priority>1</priority></url>
5+
<url><loc>https://serptools.github.io/tools/cr3-to-jpg</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
6+
<url><loc>https://serptools.github.io/tools/csv-combiner</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
7+
<url><loc>https://serptools.github.io/tools/cr2-to-jpg</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
8+
<url><loc>https://serptools.github.io/tools/eps-to-jpg</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
9+
<url><loc>https://serptools.github.io/tools/character-counter</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
10+
<url><loc>https://serptools.github.io/tools/eps-to-svg</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
11+
<url><loc>https://serptools.github.io/tools/bmp-to-jpg</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
12+
<url><loc>https://serptools.github.io/tools/gif-to-jpg</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
13+
<url><loc>https://serptools.github.io/tools/eps-to-pdf</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
14+
<url><loc>https://serptools.github.io/tools/dng-to-jpg</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
15+
<url><loc>https://serptools.github.io/tools/gif-to-webp</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
16+
<url><loc>https://serptools.github.io/tools/avif-to-jpg</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
17+
<url><loc>https://serptools.github.io/tools/dds-to-png</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
18+
<url><loc>https://serptools.github.io/tools/eps-to-png</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
19+
<url><loc>https://serptools.github.io/tools/heic-to-jpeg</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
20+
<url><loc>https://serptools.github.io/tools/heif-to-pdf</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
21+
<url><loc>https://serptools.github.io/tools/bmp-to-png</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
22+
<url><loc>https://serptools.github.io/tools/ico-to-png</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
23+
<url><loc>https://serptools.github.io/tools/jfif-to-jpg</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
24+
<url><loc>https://serptools.github.io/tools/heic-to-png</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
25+
<url><loc>https://serptools.github.io/tools/heic-to-pdf</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
26+
<url><loc>https://serptools.github.io/tools/jfif-to-pdf</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
27+
<url><loc>https://serptools.github.io/tools/jpeg-to-jpg</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
28+
<url><loc>https://serptools.github.io/tools/heif-to-png</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
29+
<url><loc>https://serptools.github.io/tools/heif-to-jpg</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
30+
<url><loc>https://serptools.github.io/tools/avif-to-png</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
31+
<url><loc>https://serptools.github.io/tools/avif-to-gif</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
32+
<url><loc>https://serptools.github.io/tools/jpeg-to-webp</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
33+
<url><loc>https://serptools.github.io/tools/heic-to-jpg</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
34+
<url><loc>https://serptools.github.io/tools/jpeg-to-svg</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
35+
<url><loc>https://serptools.github.io/tools/jpg-to-webp</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
36+
<url><loc>https://serptools.github.io/tools/jpeg-to-pdf</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
37+
<url><loc>https://serptools.github.io/tools/jpg-to-pdf</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
38+
<url><loc>https://serptools.github.io/tools/gif-to-png</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
39+
<url><loc>https://serptools.github.io/tools/json-to-csv</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
40+
<url><loc>https://serptools.github.io/tools/jfif-to-png</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
41+
<url><loc>https://serptools.github.io/tools/avif-to-jpeg</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
42+
<url><loc>https://serptools.github.io/tools/pdf-to-pdf</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
43+
<url><loc>https://serptools.github.io/tools/png-to-webp</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
44+
<url><loc>https://serptools.github.io/tools/pdf-to-tiff</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
45+
<url><loc>https://serptools.github.io/tools/pdf-to-png</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
46+
<url><loc>https://serptools.github.io/tools/jfif-to-jpeg</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
47+
<url><loc>https://serptools.github.io/tools/png-to-png</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
48+
<url><loc>https://serptools.github.io/tools/webp-to-png</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
49+
<url><loc>https://serptools.github.io/tools/ai-to-svg</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
50+
<url><loc>https://serptools.github.io/tools/jpg-to-svg</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
51+
<url><loc>https://serptools.github.io/tools/pdf-to-jpg</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
52+
<url><loc>https://serptools.github.io/tools/png-to-tiff</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
53+
<url><loc>https://serptools.github.io/tools/png-to-jpg</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
54+
<url><loc>https://serptools.github.io/tools/jpg-to-png</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
55+
<url><loc>https://serptools.github.io/tools/jpeg-to-png</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
56+
<url><loc>https://serptools.github.io/tools/png-to-svg</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
57+
<url><loc>https://serptools.github.io/tools/pdf-to-svg</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
58+
<url><loc>https://serptools.github.io/tools/ai-to-png</loc><lastmod>2025-08-09T17:34:53.160Z</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
59+
</urlset>

0 commit comments

Comments
 (0)