Skip to content

Commit

Permalink
fix(stage-web): header
Browse files Browse the repository at this point in the history
Signed-off-by: Neko Ayaka <neko@ayaka.moe>
  • Loading branch information
nekomeowww committed Mar 5, 2025
1 parent 581ca00 commit d460fef
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 7 deletions.
23 changes: 23 additions & 0 deletions apps/stage-web/netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,29 @@ publish = "/apps/stage-web/dist"
[build.environment]
NODE_VERSION = "23"

[[redirects]]
from = "/docs/*"
to = "https://airi-docs.netlify.app/:splat"
status = 200
force = true

# Plausible.io analytics
#
# Proxying Plausible through Netlify | Plausible docs
# https://plausible.io/docs/proxy/guides/netlify

[[redirects]]
from = "/remote-assets/page-external-data/js/script.js"
to = "https://plausible.io/js/script.js"
status = 200
force = true

[[redirects]]
from = "/api/v1/page-external-data/submit"
to = "https://plausible.io/api/event"
status = 200
force = true

[[redirects]]
from = "/assets/*"
to = "/assets/:splat"
Expand Down
8 changes: 1 addition & 7 deletions apps/stage-web/public/_headers
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
# Plausible.io analytics
#
# Proxying Plausible through Netlify | Plausible docs
# https://plausible.io/docs/proxy/guides/netlify
/remote-assets/page-external-data/js/script.js https://plausible.io/js/script.js 200
/api/v1/page-external-data/submit https://plausible.io/api/event 200

/assets/*
cache-control: max-age=31536000
cache-control: immutable

0 comments on commit d460fef

Please sign in to comment.