Skip to content

Commit bf0e7eb

Browse files
FIX URL DOUBLING: Remove fixed site URL, let Astro detect dynamically
1 parent b74b8b7 commit bf0e7eb

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

astro.config.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import starlight from "@astrojs/starlight";
44
import starlightThemeGalaxy from "starlight-theme-galaxy";
55
import tailwind from "@astrojs/tailwind";
66

7-
// Use environment variable or default to production URL
8-
const site = process.env.ASTRO_SITE || "https://docs.gdgalgiers.dev/";
9-
const ogUrl = new URL("gdg-docs-og-1.png", site).href;
7+
// Use environment variable or default to undefined for dynamic site detection
8+
const site = process.env.ASTRO_SITE;
9+
const ogUrl = site ? new URL("gdg-docs-og-1.png", site).href : "/gdg-docs-og-1.png";
1010
const ogImageAlt =
1111
"GDG Development Documentation - Comprehensive technical guides and best practices";
1212

cloudbuild.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ steps:
2525
- '8080'
2626
- '--memory'
2727
- '512Mi'
28-
- '--set-env-vars'
29-
- 'ASTRO_SITE=https://docs.gdgalgiers.dev/'
3028

3129
images:
3230
- 'gcr.io/erudite-marker-465011-c6/gdg-docs:latest'

0 commit comments

Comments
 (0)