[build] command = "pnpm build:site" publish = "site/dist" ignore = "pnpm dlx turbo-ignore site --task=build --fallback=origin/main" # PostHog reverse proxy (ad-blocker bypass) [[redirects]] from = "/ph/static/*" to = "https://us-assets.i.posthog.com/static/:splat" host = "us-assets.i.posthog.com" status = 200 force = true [[redirects]] from = "/ph/*" to = "https://us.i.posthog.com/:splat" host = "us.i.posthog.com" status = 200 force = true # Netlify aliases -> videojs.org [[redirects]] from = "https://videojs.com/*" to = "https://videojs.org/:splat" status = 301 force = true [[redirects]] from = "https://www.videojs.com/*" to = "https://videojs.org/:splat" status = 301 force = true [[redirects]] from = "https://v10.videojs.org/*" to = "https://videojs.org/:splat" status = 301 force = true [[redirects]] from = "https://vjs10-site.netlify.app/*" to = "https://videojs.org/:splat" status = 301 force = true # Redirect old theme demo pages to home [[redirects]] from = "/city" to = "/" status = 308 [[redirects]] from = "/fantasy" to = "/" status = 308 [[redirects]] from = "/forest" to = "/" status = 308 [[redirects]] from = "/sea" to = "/" status = 308 # Redirect old v8 guides to legacy site [[redirects]] from = "/guides" to = "https://legacy.videojs.org/guides" status = 308 [[redirects]] from = "/guides/*" to = "https://legacy.videojs.org/guides/:splat" status = 308 # Redirect old tags pages to blog (no tag filtering in v10) [[redirects]] from = "/tags" to = "/blog" status = 307 [[redirects]] from = "/tags/*" to = "/blog" status = 307 # Redirect old support URL to new page [[redirects]] from = "/html5-video-support" to = "/support" status = 307 # Misc v8 stragglers [[redirects]] from = "/getting-started" to = "/docs" status = 307 [[redirects]] from = "/advanced" to = "/docs" status = 307 [[redirects]] from = "/plugins" to = "/docs" status = 307