SettingsDatabaseEmptyStateLocal.tsx 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. import { Card, CardContent, CardHeader, CardTitle } from 'ui'
  2. import { DocsButton } from '@/components/ui/DocsButton'
  3. import { DOCS_URL } from '@/lib/constants'
  4. export function SettingsDatabaseEmptyStateLocal() {
  5. return (
  6. <>
  7. <Card>
  8. <CardHeader>
  9. <CardTitle>Local development & CLI</CardTitle>
  10. </CardHeader>
  11. <CardContent>
  12. <p className="text-sm text-foreground-light mb-4">
  13. Configure database settings in{' '}
  14. <code className="text-code-inline">briven/config.toml</code> — applied automatically
  15. on <code className="text-code-inline">briven start</code>.
  16. </p>
  17. <DocsButton href={`${DOCS_URL}/guides/local-development/cli/config#database-config`} />
  18. </CardContent>
  19. </Card>
  20. <Card>
  21. <CardHeader>
  22. <CardTitle>Self-Hosted Briven</CardTitle>
  23. </CardHeader>
  24. <CardContent>
  25. <p className="text-sm text-foreground-light mb-4">
  26. Change settings in{' '}
  27. <a
  28. target="_blank"
  29. rel="noopener noreferrer"
  30. href="https://github.com/briven/briven/blob/master/docker/.env.example"
  31. >
  32. .env file
  33. </a>{' '}
  34. and{' '}
  35. <a
  36. target="_blank"
  37. rel="noopener noreferrer"
  38. href="https://github.com/briven/briven/blob/master/docker/docker-compose.yml"
  39. >
  40. docker-compose.yml
  41. </a>
  42. .
  43. </p>
  44. <DocsButton
  45. href={`${DOCS_URL}/guides/self-hosting/docker#configuring-and-securing-briven`}
  46. />
  47. </CardContent>
  48. </Card>
  49. </>
  50. )
  51. }