Variable
| Static Public Summary | ||
| public |
config: {"app": *, "db": *, "sentry": *} Configuration file for the application. |
|
| public |
configSchema: import('joi').Schema Configuration schema |
|
| public |
db: * Install the turso-cli and create the database using the command:
|
|
Static Public
public config: {"app": *, "db": *, "sentry": *} source
import {config} from 'app_name/src/config/config.js'Configuration file for the application.
public configSchema: import('joi').Schema source
import {configSchema} from 'app_name/src/models/config.schema.js'Configuration schema
Properties:
| Name | Type | Attribute | Description |
| db | Object | Database configuration |
|
| db.url | string | Database URL |
|
| db.authToken | string | Database authentication token |
|
| sentry | Object | Sentry configuration |
|
| sentry.dsn | string | Sentry DSN |
|
| sentry.tracesSampleRate | number | Sentry traces sample rate |
|
| sentry.env | string | Sentry environment |
public db: * source
import {db} from 'app_name/src/database/db.js'Install the turso-cli and create the database using the command:
turso db create <database-name>
To obtain the auth token, use the command:
turso db tokens create <database-name>
To obtain the database URL, use the command:
turso db show <database-name>