You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(website): remove lapisUrls from runtime config
`lapisUrls` is no longer injected into `runtime_config.json` — the
LAPIS URL for any organism is now derived as
`{backendUrl}/{organism}/lapis`, matching the backend proxy routes
added in the previous commit.
Changes:
- `runtimeConfig.ts`: remove `lapisUrls` field from `serviceUrls` Zod
schema
- `config.ts`: rewrite `getLapisUrl()` to compute from `backendUrl`
instead of reading a config map; no more runtime error on unknown
organisms
- `GroupPage.tsx`: replace `clientConfig.lapisUrls[key]` (with null
guard) with `getLapisUrl(clientConfig, key)`
- `SeqSetRecordsTableWithMetadata.tsx`: add `organisms: string[]` prop;
iterate that list and compute each URL via `getLapisUrl` — removes the
hacky `lapisUrls` dummy-organism filter
- `SeqSetItem.tsx`: thread `organisms` prop through to
`SeqSetRecordsTableWithMetadata`
- `seqsets/[seqSetId].[version].astro`: pass
`Object.keys(websiteConfig.organisms)` as `organisms`
- `api-documentation/index.astro`: compute LAPIS doc links from
`backendUrl` + organism keys (already available as `organismKeys`)
- `loculus-info/index.ts`: compute `lapis` response field from
`backendUrl` + organism keys instead of reading `lapisUrls`
- `_common-metadata.tpl`: remove `lapisUrls` from `publicRuntimeConfig`
- `loculus-website-config.yaml`: remove `lapisUrls` from serverSide
block (URL is now computed client-side)
- test files: replace `testConfig.serverSide.lapisUrls[testOrganism]`
with `getLapisUrl(testConfig.serverSide, testOrganism)`
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments