diff --git a/README.md b/README.md index 19b796c..eac559a 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ bun run preview ## Deployment -- **Custom domain (SEO & GEO)**: Set `PUBLIC_SITE_URL=https://your-domain.com` in your build environment so canonical URLs, bidirectional `hreflang`, `sitemap.xml`, `robots.txt`, `llms.txt`, `llms-full.txt`, Open Graph tags, and Schema.org JSON-LD resolve to your production domain automatically. +- **Custom domain (SEO & GEO)**: Defaults to `https://reims.dev`. Override with `PUBLIC_SITE_URL=https://your-domain.com` in your build environment if needed; canonical URLs, bidirectional `hreflang`, `sitemap.xml`, `robots.txt`, `llms.txt`, `llms-full.txt`, Open Graph tags, and Schema.org JSON-LD update automatically. - **Cloudflare Pages**: Build command `pnpm run build` (or `bun run build`), output directory `dist`. - **Cloudflare Workers Static Assets**: Run `bun run build` then `npx wrangler deploy`. diff --git a/astro.config.mjs b/astro.config.mjs index 35150a9..f956267 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -3,7 +3,7 @@ import react from '@astrojs/react'; import mdx from '@astrojs/mdx'; import tailwindcss from '@tailwindcss/vite'; -const SITE_URL = (process.env.PUBLIC_SITE_URL || process.env.SITE_URL || 'https://reims-go.pages.dev').replace(/\/+$/, ''); +const SITE_URL = (process.env.PUBLIC_SITE_URL || process.env.SITE_URL || 'https://reims.dev').replace(/\/+$/, ''); export default defineConfig({ site: SITE_URL, diff --git a/src/lib/seo.ts b/src/lib/seo.ts index 9a316b3..e92711d 100644 --- a/src/lib/seo.ts +++ b/src/lib/seo.ts @@ -6,7 +6,7 @@ import { FALLBACK_RELEASE } from './releases'; export const SITE_URL = ( import.meta.env.PUBLIC_SITE_URL || import.meta.env.SITE || - 'https://reims-go.pages.dev' + 'https://reims.dev' ).replace(/\/+$/, ''); export const SITE_NAME = 'Reims-Go'; diff --git a/wrangler.jsonc b/wrangler.jsonc index f57e06c..87bbdbf 100644 --- a/wrangler.jsonc +++ b/wrangler.jsonc @@ -1,9 +1,21 @@ { "$schema": "node_modules/wrangler/config-schema.json", "name": "reims-go-landing", - "compatibility_date": "2026-01-01", + "compatibility_date": "2026-12-02", + "observability": { + "enabled": true, + "traces": { + "enabled": true + } + }, "assets": { "directory": "./dist", "not_found_handling": "404-page" - } + }, + "routes": [ + { + "pattern": "reims.dev", + "custom_domain": true + } + ] }