Compare commits
2 Commits
28fcaf16c5
...
461b5e0cd6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
461b5e0cd6 | ||
|
|
0d743402ac |
@@ -53,6 +53,15 @@ jobs:
|
|||||||
- name: Build site
|
- name: Build site
|
||||||
run: npm run build
|
run: npm run build
|
||||||
|
|
||||||
|
# Astro/Vite does not copy dotfiles from public/ into dist/, so .htaccess
|
||||||
|
# never reaches the deployed origin and Apache never sees the security
|
||||||
|
# headers it sets. Copy it explicitly. Fail if the source is missing
|
||||||
|
# rather than silently shipping a header-less site.
|
||||||
|
- name: Copy .htaccess into dist
|
||||||
|
run: |
|
||||||
|
test -f public/.htaccess
|
||||||
|
cp public/.htaccess dist/.htaccess
|
||||||
|
|
||||||
- name: Guard — no TBD markers may ship in built HTML
|
- name: Guard — no TBD markers may ship in built HTML
|
||||||
run: |
|
run: |
|
||||||
if grep -rlE '(TBD):' dist 2>/dev/null | grep -E '\.(html|svg)$'; then
|
if grep -rlE '(TBD):' dist 2>/dev/null | grep -E '\.(html|svg)$'; then
|
||||||
|
|||||||
Reference in New Issue
Block a user