config.py 605 B

1234567891011121314151617181920212223242526272829
  1. from typing import Optional
  2. from pynecone import constants
  3. from pynecone.base import Base
  4. class Config(Base):
  5. """A Pynecone config."""
  6. # The name of the app.
  7. app_name: str
  8. # The backend API url.
  9. api_url: str = "http://localhost:8000"
  10. # The database url.
  11. db_url: str = f"sqlite:///{constants.DB_NAME}"
  12. # The redis url.
  13. redis_url: Optional[str] = None
  14. # The deploy url.
  15. deploy_url: Optional[str] = None
  16. # The environment mode.
  17. env: constants.Env = constants.Env.DEV
  18. # The path to the bun executable.
  19. bun_path: str = "$HOME/.bun/bin/bun"