chore(cf): configure reims.dev custom domain, observability, and production site URL

This commit is contained in:
Dnyo666 committed 2026-12-02 21:26:29 +08:00
1 parent 3adb82668d
commit 84e0fed5b4
4 files changed
+17 -5

No files matched your search

+1 -1
View File
@@ -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`.
+1 -1
View File
@@ -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,
+1 -1
View File
@@ -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';
+14 -2
View File
@@ -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
}
]
}