Commit a450a06
authored
Fix OG image localhost fallback; swap frontmatter demo image (#102)
* Fix OG image URL falling back to localhost on prod build
makePublicURL() returned http://localhost:3000/ for prod deploys:
VERCEL_URL is unset on GitHub Actions, and DEPLOYMENT_ALIAS is only
written to $GITHUB_ENV after vercel build runs, so neither is available
at build time. Add a main-branch CI guard that returns the canonical URL.
* Swap frontmatter demo image to huike-thinking.webp
* Update visual snapshots for frontmatter demo image swap
* Use CI-native linux render for frontmatter snapshot
The jammy-container baseline differed ~5% from ubuntu-latest's webp
render (above the 2% tolerance). Replace the two linux baselines with
CI's own rendered output so they match the CI environment exactly.1 parent 619b30b commit a450a06
8 files changed
Lines changed: 9 additions & 2 deletions
File tree
- e2e/visual-regression.spec.ts-snapshots
- posts/features
- src/images/frontmatter
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
92 | 99 | | |
93 | 100 | | |
94 | 101 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
Loading
Binary file not shown.
0 commit comments