Add dotenv

This commit is contained in:
Jon Staab
2026-02-25 15:16:48 -08:00
parent 9bc6c42aee
commit de4a16adbf
11 changed files with 3790 additions and 7 deletions
+8
View File
@@ -6,4 +6,12 @@ declare global {
}
}
interface ImportMetaEnv {
readonly VITE_API_URL: string
}
interface ImportMeta {
readonly env: ImportMetaEnv
}
export {}
+2
View File
@@ -2,6 +2,8 @@ import { EventStore } from "applesauce-core"
import { RelayPool } from "applesauce-relay"
import { AccountManager } from "applesauce-accounts"
export const API_URL = import.meta.env.VITE_API_URL
export const eventStore = new EventStore()
export const pool = new RelayPool()
export const accounts = new AccountManager()