webamp/netlify.toml
Jordan Eldredge 890e67eb3a Split demo site into its own package
Move the demo site from packages/webamp/demo/ into packages/webamp-demo/
as a standalone workspace package. This cleanly separates the library
(published to npm) from the demo site (deployed to webamp.org).

Key changes:
- Demo imports webamp source via relative paths (no aliases needed)
- Demo has its own package.json with demo-specific deps
- Simplified vite config (just nodePolyfills plugin)
- Removed vite branching from rollupPlugins.mjs (library-only now)
- Renamed build-library -> build in webamp package
- Updated turbo.json, CI, netlify config, and code-size workflow
- Removed demo-only deps from webamp package (sentry, butterchurn stays
  for the butterchurn bundle)
- Zero bundle size change for the library

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-07 14:09:25 -07:00

39 lines
1.1 KiB
TOML

[build]
command = "pnpm run deploy"
publish = "packages/webamp-demo/dist/"
# A short URL for listeners of https://changelog.com/podcast/291
[[redirects]]
from = "/changelog"
to = "/#%7B\"initialTracks\"%3A%5B%7B\"url\"%3A\"https%3A%2F%2Fcdn.changelog.com%2Fuploads%2Fpodcast%2F291%2Fthe-changelog-291.mp3\"%2C\"metaData\"%3A%7B\"artist\"%3A\"Changelog%20Podcast\"%2C\"title\"%3A\"Winamp2-js\"%7D%7D%5D%7D"
# A short URL for LuigiHann's Poolside.fm skin
[[redirects]]
from = "/poolside"
to = "/?bg=%2362639f&scPlaylist=1040356177&skinUrl=https://cdn.webampskins.org/skins/1b3138a9ea05e917049a4eab7b73d069.wsz"
[[redirects]]
from = "/about"
to = "https://github.com/captbaritone/webamp"
[[redirects]]
from = "/wallpapers"
to = "https://www.dropbox.com/sh/3lx5ajfvsjeenj5/AADf8AihDeu1KgH1wr_WAsgXa?dl=0&lst="
[[redirects]]
from = "/chat"
to = "https://discord.gg/fpBPmFkngQ"
[[redirects]]
from = "/bot"
to = "https://twitter.com/winampskins"
# Redirect domain aliases to primary domain
[[redirects]]
from = "https://webamp.net/*"
to = "https://webamp.org/:splat"
status = 301
force = true
[build.environment]
NODE_VERSION = "22.11.0"