Add dotenv
This commit is contained in:
Vendored
+8
@@ -6,4 +6,12 @@ declare global {
|
||||
}
|
||||
}
|
||||
|
||||
interface ImportMetaEnv {
|
||||
readonly VITE_API_URL: string
|
||||
}
|
||||
|
||||
interface ImportMeta {
|
||||
readonly env: ImportMetaEnv
|
||||
}
|
||||
|
||||
export {}
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user