Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ai/context/decisions.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ reads in order.
|---|---|---|---|
| 1 | The site builds fully static (`output: 'static'`, no adapter) and deploys as Workers Static Assets | AstroWind is a static template, and its own README deploys it to Workers as assets with no adapter; an adapter would move prerendering into workerd for nothing | `specs/epics/astrowind/design.md` |
| 2 | One small Worker (`apps/web/worker/index.ts`) in front of the assets | The `cloudflare-workers-assets-turbo` composition deploys a Worker with its assets; this one hands unmatched requests back to the assets (the 404 page) and is where a redirect or an API route goes later | risk AW-B |
| 3 | Astro 7 and the template's own dependency set, sharp at build time | Upstream's versions; images are optimised by `astro build` in Node, so the Worker needs no image service | IMPLEMENTATION-STATUS (departures) |
| 3 | Astro held at 7.3.8, the template's own dependency set otherwise, sharp at build time | Astro 7.4 refuses any Node below 22.23.4, and the Node 22 some GitHub runners carry is 22.23.3; images are optimised by `astro build` in Node, so the Worker needs no image service | IMPLEMENTATION-STATUS (departures) |
| 4 | The tests live in the app (`apps/web/src/test`), not a `tests/web` package | Astro components render only under Astro's own Vite config (the container API) | risk AW-D |
| 5 | One committed `wrangler.jsonc` is what deploys | There is no adapter to generate a second config; the lane checks the config exists before the build | `apps/web/component.yaml` |
| 6 | The site's name is one seam, `SITE_NAME` in `apps/web/src/site.ts`, read by the theme's config builder | The rename rewrites one literal; `src/config.yaml` no longer spells the name | IMPLEMENTATION-STATUS (departures) |
Expand Down
2 changes: 1 addition & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@astro-community/astro-embed-youtube": "^0.5.10",
"@astrojs/rss": "^4.0.19",
"@astrojs/sitemap": "^3.7.3",
"astro": "^7.3.1",
"astro": "7.3.8",
"astro-icon": "^1.1.5",
"astro-seo": "^1.2.0",
"limax": "4.2.3",
Expand Down
114 changes: 70 additions & 44 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions repo-blueprint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ ignore:
- plan.json
- "**/*.tsbuildinfo"
- "**/next-env.d.ts"
# What `astro check` and `astro build` generate (types, icons, fonts): a
# site's own build makes it again.
- .astro
# `orun new` snapshots the WORKING TREE, not the git index: an operator's
# local environment files would otherwise be copied into somebody else's
# repository. `.env.example` is not among them, and ships.
Expand Down
2 changes: 2 additions & 0 deletions specs/epics/astrowind/IMPLEMENTATION-STATUS.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ Everything not listed here is the template as it is upstream at `14e1a69`.
| 8 | npm `overrides` → pnpm `overrides` in `pnpm-workspace.yaml` | The same floors, in pnpm's form |
| 9 | `lint` is `eslint .` (the template's config, `.wrangler` ignored), `typecheck` is `astro check`; Prettier stays, as `pnpm --filter @app/web format` | The workspace's `typecheck` / `lint` / `test` contract |
| 10 | Tests: `src/test/site.test.ts`, `src/test/worker.test.ts` (vitest over Astro's container API) | The template ships none |
| 11 | `astro` is held at `7.3.8` (upstream `^7.3.1`, which resolves 7.4) | Astro 7.4 refuses Node below 22.23.4; the lanes and Baseline CI run `node-version: 22`, which some GitHub runners resolve to 22.23.3 |
| 12 | `.astro/` is ignored by the blueprint and the leak gate | What `astro check` generates (types, icons, fonts) is a build's, not the site's |
2 changes: 1 addition & 1 deletion testing/leak.test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ for p in placed:

# ── nothing local and nothing built ───────────────────────────────────────
LOCAL = re.compile(r"(^|/)(\.env(\.[^/]*\.local|\.local)?|\.dev\.vars(\..*)?|node_modules|dist|\.next|"
r"\.open-next|\.wrangler|\.turbo|\.orun|next-env\.d\.ts|[^/]*\.tsbuildinfo)(/|$)")
r"\.open-next|\.wrangler|\.turbo|\.orun|\.astro|next-env\.d\.ts|[^/]*\.tsbuildinfo)(/|$)")
for p in placed:
if LOCAL.search(p):
bad(f"{p} would ship — a local or built file of whoever ran the bootstrap")
Expand Down
Loading