Replace the hashing asset plugin with two build-time plugins that never rename their files, so an unchanged font or sprite stays in every visitor's cache across deploys (0011, 0012): - icon-sprite-plugin builds icons/*.svg with svgo into public/icons/symbol-defs.svg. The Icon atom links it as symbol-defs.svg?v=<ICON_SPRITE_VERSION>; the file's first line stamps its version, so dev warns when the sprite changes without a bump. - font-copy-plugin copies island fonts/ byte for byte into public/fonts/ and warns when a font changes under its old name. - island fonts.css declares both Yekan Bakh faces with root paths and a fallback face; theme.css points font-sans and font-latin at them. - Root layouts preload CRITICAL_FONT_URL. next/font is gone. - Both apps serve /fonts and /icons as immutable. - island env, the apps' island-env bootstrap, NEXT_PUBLIC_ISLAND_* and NEXT_PUBLIC_CDN_ORIGIN are removed; paths live in island constants.ts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| .env.example | ||
| .swcrc | ||
| AGENTS.md | ||
| CLAUDE.md | ||
| eslint.config.mjs | ||
| index.d.ts | ||
| next.config.ts | ||
| package.json | ||
| postcss.config.mjs | ||
| tsconfig.json | ||