@leagueakari/bootstrap
v0.1.3
Published
Plain JSON runtime service-discovery bootstrap data for League Akari.
Readme
@leagueakari/bootstrap
Plain JSON runtime service-discovery bootstrap data for League Akari.
import { apiBaseUrl, staticBaseUrl, baseUrls } from '@leagueakari/bootstrap'The package also exports @leagueakari/bootstrap/bootstrap.json, which is the same plain JSON
document published at the package root:
{
"schemaVersion": 1,
"generation": 2,
"baseUrls": {
"api": "https://akari-api.yuru-yuri.com",
"static": "https://akari-static.yuru-yuri.com"
}
}The same document is available as akariBootstrap in the package metadata returned by the npm
Registry /latest endpoint.
Current defaults:
- API:
https://akari-api.yuru-yuri.com - Static assets:
https://akari-static.yuru-yuri.com
Remote source selection, caching, retries, and persistence belong to consuming applications rather than this package.
Publishing a new generation
- Update
bootstrap.jsonandpackage.json.akariBootstrap. Incrementgenerationwhen the service addresses change, and always increment the package version. - Run
npm run checkandnpm run smoke:pack. - Publish the generated tarball with
npm publish --access public.
The package has no runtime dependencies and no install lifecycle scripts.
