reflex/pynecone/config.py
2022-11-21 18:50:59 -08:00

35 lines
689 B
Python

"""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 = "http://localhost:8000"
# The database url.
db_url: str = f"sqlite:///{constants.DB_NAME}"
# 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 = "$HOME/.bun/bin/bun"