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
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches: [main]
tags: ["v*"]
pull_request:
branches: [main]

jobs:
test:
Expand Down Expand Up @@ -135,7 +137,6 @@ jobs:
cp deploy/CNAME _site/
cp deploy/linux.sh _site/linux.sh
cp deploy/mac.sh _site/mac.sh
cp deploy/windows.ps1 _site/windows.ps1
chmod +x _site/linux.sh _site/mac.sh

- name: Upload Pages artifact
Expand Down
8 changes: 5 additions & 3 deletions app/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ export default defineConfig({
mode: 'standalone',
}),
integrations: [react()],
// Disable CSRF origin check — this is a self-hosted internal tool accessed
// via a custom port/host, so the Origin header routinely won't match.
// Astro 7 changed the compressHTML default from `true` to `'jsx'`, which strips
// whitespace between inline elements differently. Pin the v6 behavior so the
// upgrade doesn't silently alter rendered output. ponytail: drop to default if a jsx-mode audit passes.
compressHTML: true,
security: {
checkOrigin: false,
checkOrigin: true,
},
server: {
host: process.env.HOST || '0.0.0.0',
Expand Down
Loading
Loading