Files
vibetorrent/frontend/Trunk.toml
spinline c122290f37
All checks were successful
Build MIPS Binary / build (push) Successful in 2m1s
build(frontend): add post_build hook to strip modulepreload tags preventing Safari warnings
2026-02-21 21:03:48 +03:00

18 lines
570 B
TOML

[[proxy]]
rewrite = "/api/"
backend = "http://localhost:3000/api/"
[[hooks]]
stage = "build"
command = "sh"
command_arguments = ["-c", "npx @tailwindcss/cli -i input.css -o public/tailwind.css"]
[[hooks]]
stage = "post_build"
command = "sh"
command_arguments = ["-c", "sed -i '' -e 's/<link rel=\"modulepreload\"[^>]*>//g' -e 's/<link rel=\"preload\"[^>]*>//g' \"$TRUNK_STAGING_DIR/index.html\" || sed -i -e 's/<link rel=\"modulepreload\"[^>]*>//g' -e 's/<link rel=\"preload\"[^>]*>//g' \"$TRUNK_STAGING_DIR/index.html\""]
[build]
target = "index.html"
dist = "dist"