Setting
One setting of a configuration: its name as written in the file or the environment, its type, its default, what it does.
import Setting from '@sypnia/ui/astro/Setting.astro'
On this page
Two settings
SYPNIA_TOKENrequired- Type
string- Environment variable
SYPNIA_TOKEN
The API token the SDK uses. Keep it out of browser code.
timeout- Type
number- Default
10000
How long to wait for an answer, in milliseconds.
Code
---
import Setting from '@sypnia/ui/astro/Setting.astro';
---
<div class="sy-docs" style="min-height:0;background:none">
<Setting name="SYPNIA_TOKEN" type="string" env="SYPNIA_TOKEN" required>The API token the SDK uses. Keep it out of browser code.</Setting>
<Setting name="timeout" type="number" default="10000">How long to wait for an answer, in milliseconds.</Setting>
</div> When to use it
Use it when
- Configuration reference: environment variables, config files, CLI flags.
Do not use it when
- Endpoints and tools.
For everyone
- Facts are a description list: type, default, variable.