mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 01:18:34 +00:00
35 lines
769 B
TOML
35 lines
769 B
TOML
[build]
|
|
command = "./script/netlify_build.sh"
|
|
#publish = "build/client"
|
|
|
|
[build.environment]
|
|
REACT_APP_PUBLIC_POSTHOG_KEY = "phc_jBFgac0mVALAFk3negnSfYCcHgvkT00yBLQDmCDYNBb"
|
|
REACT_APP_PUBLIC_POSTHOG_UI = "https://us.i.posthog.com"
|
|
|
|
[dev]
|
|
command = "npm run dev"
|
|
framework = "vite"
|
|
|
|
# Set immutable caching for static files, because they have fingerprinted filenames
|
|
|
|
[[headers]]
|
|
for = "/build/*"
|
|
|
|
[headers.values]
|
|
|
|
"Cache-Control" = "public, max-age=31560000, immutable"
|
|
|
|
[[redirects]]
|
|
from = "/ingest/static/*"
|
|
to = "https://us-assets.i.posthog.com/static/:splat"
|
|
host = "us-assets.i.posthog.com"
|
|
status = 200
|
|
force = true
|
|
|
|
[[redirects]]
|
|
from = "/ingest/*"
|
|
to = "https://us.i.posthog.com/:splat"
|
|
host = "us.i.posthog.com"
|
|
status = 200
|
|
force = true
|