Netlify
netlify.toml already sets build bun run build, publish out, and JSON headers for association files.
Customize for your app
| File | Change? | What to put |
|---|---|---|
netlify.toml | Rarely | Keep build/publish/headers; only edit if you change tooling |
config/site.json | Yes | Brand, copy, theme |
| Netlify Site configuration → Environment variables | Yes | Package name, fingerprints, iOS Team/Bundle ID, store URLs |
Env vars to set in Netlify
| Variable | Purpose |
|---|---|
ANDROID_PACKAGE_NAME | Android applicationId |
ANDROID_SHA256_CERT_FINGERPRINTS | Comma-separated SHA-256 |
IOS_TEAM_ID / IOS_BUNDLE_ID | AASA appID |
NEXT_PUBLIC_ANDROID_STORE_URL / NEXT_PUBLIC_IOS_STORE_URL | Landing store buttons |
IOS_INCLUDE_AUTH_LINKS | Optional; default keeps /__/auth/links* |
Trigger a new deploy after updating env so out/ is rebuilt.
Deploy
Connect the repo, or:
bun install
bun run build
bunx netlify deploy --prod --dir=out
Confirm association URLs return inline JSON (headers come from netlify.toml).