Repository navigation
docs: correct Cloudflare Pages project name and root redirect - #47
Conversation
The docs site deploys to the Pages project `code-style`, not `pleaseai-code-style`. Fix the name in AGENTS.md, ADR-0003, and apps/docs/wrangler.jsonc so `bun run docs:deploy` targets the real project. ADR-0003 described `/` as a meta-refresh page. Nimbus writes Astro's `redirects` into `dist/_redirects`, so Cloudflare Pages answers `/` with a 301 to `/en`. Update the ADR to match.
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
Deploying code-style with
|
| Latest commit: |
1ac4d77
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://b777a4e8.code-style.pages.dev |
| Branch Preview URL: | https://docs-fix-pages-project-name.code-style.pages.dev |
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 0 |
| Duplication | 0 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
|
There was a problem hiding this comment.
No issues found across 4 files
Architecture diagram
sequenceDiagram
participant Dev as Developer
participant CLI as Bun/Wrangler CLI
participant CF as Cloudflare Pages
participant Edge as Cloudflare Edge
participant DNS as DNS (code-style.pages.dev)
participant User as Site Visitor
Note over Dev,CF: Deploy Flow (bun run docs:deploy)
Dev->>CLI: run docs:deploy
CLI->>CLI: Build Astro site (dist/ output)
CLI->>CF: wrangler pages deploy (project: code-style)
CF->>CF: Store static assets (dist/ contents)
CF-->>CLI: Deployment successful
CLI-->>Dev: Success message
Note over User,Edge: Runtime Request Flow
User->>DNS: GET https://code-style.pages.dev/
DNS-->>User: Route to Cloudflare Pages edge
alt Request for "/" (root)
User->>Edge: GET /
Edge->>CF: Look up _redirects rules
CF-->>Edge: 301 redirect to /en
Edge-->>User: 301 Location: /en
Note over Edge,CF: Nimbus generated _redirects from Astro redirects config
end
alt Request for "/en"
User->>Edge: GET /en
Edge->>CF: Fetch static file /en/index.html
CF-->>Edge: 200 OK (HTML)
Edge-->>User: Serve English landing page
end
alt Request for "/ko" or locale path
User->>Edge: GET /ko
Edge->>CF: Fetch static file /ko/index.html
CF-->>Edge: 200 OK (HTML)
Edge-->>User: Serve Korean landing page
end
Note over Edge,CF: Astro's meta-refresh index.html exists but is never served by Pages
|



Summary
Follow-up to #43.
code-style, notpleaseai-code-style. This fixes the name inAGENTS.md, ADR-0003, andapps/docs/wrangler.jsonc, sobun run docs:deploy(wrangler pages deploy) targets the real project. The Git-integrated Pages build now runs from the repo root and doesn't readapps/docs/wrangler.jsonc, so CI deploys are unaffected./is served as a meta-refresh page. Nimbus copies Astro'sredirectsintodist/_redirectswhen it detects a Cloudflare deploy, so Pages answers/with a 301 to/en, and the meta-refreshindex.htmlis never served. The ADR's constraint, i18n, and URL consequence sections now describe the 301. The comment onredirectsinapps/docs/astro.config.tsis corrected the same way.Related issue
Follow-up to #43.
Checklist
bun run build): not run; docs and config onlybun run lint): lint-staged ESLint passed on commitSummary by cubic
Corrects the Cloudflare Pages project name in the docs so
bun run docs:deploytargets the realcode-styleproject instead ofpleaseai-code-style, and updates ADR-0003 to describe the root URL as a 301 redirect to/enrather than a meta-refresh page. The Git-integrated Pages build runs from the repo root and is unaffected.Written for commit 1ac4d77. Summary will update on new commits.