Skip to main content

Netlify

netlify.toml already sets build bun run build, publish out, and JSON headers for association files.

Customize for your app

FileChange?What to put
netlify.tomlRarelyKeep build/publish/headers; only edit if you change tooling
config/site.jsonYesBrand, copy, theme
Netlify Site configuration → Environment variablesYesPackage name, fingerprints, iOS Team/Bundle ID, store URLs

Env vars to set in Netlify

VariablePurpose
ANDROID_PACKAGE_NAMEAndroid applicationId
ANDROID_SHA256_CERT_FINGERPRINTSComma-separated SHA-256
IOS_TEAM_ID / IOS_BUNDLE_IDAASA appID
NEXT_PUBLIC_ANDROID_STORE_URL / NEXT_PUBLIC_IOS_STORE_URLLanding store buttons
IOS_INCLUDE_AUTH_LINKSOptional; 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).