Files
Byron Karlen 6d33ea8f3d [snack-sdk][website][snackager] Migrate API server hostname (#684)
# Why

For cookie-based auth to work, the API server url needs to be updated from exp.host to api.expo.dev (which shares the top-level domain with snack.expo.dev). api.expo.dev accepts requests in a different format than exp.host.

# How

snack-sdk

- Changed default apiUrl to api.expo.dev
- Use the modern path format
- Updated docs since this is a breaking change

snack-proxies

- removed www from snack-proxies. No longer used. Instead, snack website runs against proxy-staging-api.expo.test, but this can be overriden with API_SERVER_URL

snackager

- passes new api server url to snack-sdk

website

- passes new api server url to snack-sdk
- updates its own API requests


# Test Plan
Used snack.expo.test locally and verified that thing worked as expected, but we don't have e2e test coverage for this.
2026-05-20 14:37:48 -04:00
..
2021-12-28 23:36:42 +01:00
2026-01-27 20:58:24 +08:00