feat: make invite link base URL configurable via APP_URL

Load environment variables from .env file using godotenv.
Defaults to https://demo.adriatica.io if APP_URL is not set.
This commit is contained in:
Ryan Hamamura
2026-02-04 07:02:52 -10:00
parent 20ed4807d9
commit 7faf94fa6d
7 changed files with 23 additions and 4 deletions

View File

@@ -9,6 +9,7 @@ import (
"os"
"github.com/google/uuid"
"github.com/joho/godotenv"
"github.com/ryanhamamura/c4/auth"
"github.com/ryanhamamura/c4/db"
@@ -46,6 +47,8 @@ func port() string {
}
func main() {
_ = godotenv.Load()
if err := db.Init("c4.db"); err != nil {
log.Fatal(err)
}