12345678910111213141516171819202122232425262728293031323334 |
- """The Pynecone config."""
- from typing import Optional
- from pynecone import constants
- from pynecone.base import Base
- class Config(Base):
- """A Pynecone config."""
- # The name of the app.
- app_name: str
- # The username.
- username: Optional[str] = None
- # The backend API url.
- api_url: str = constants.API_URL
- # The database url.
- db_url: str = constants.DB_URL
- # The redis url.
- redis_url: Optional[str] = None
- # The deploy url.
- deploy_url: Optional[str] = None
- # The environment mode.
- env: constants.Env = constants.Env.DEV
- # The path to the bun executable.
- bun_path: str = constants.BUN_PATH
|