fix: use VITE_NKODE_API_URL env var matching Dokploy build args

This commit is contained in:
2026-01-29 23:32:56 +00:00
parent 5c3217e3d5
commit 1a44b1085f
2 changed files with 3 additions and 2 deletions

View File

@@ -5,7 +5,7 @@
import { NKodeClient } from 'nkode-client-wasm'
import type { NKodeSession, IconsResponse, CodeLoginData } from '../types'
const API_BASE = import.meta.env.VITE_API_URL || ''
const API_BASE = import.meta.env.VITE_NKODE_API_URL || import.meta.env.VITE_API_URL || ''
let client: NKodeClient | null = null

3
src/vite-env.d.ts vendored
View File

@@ -1,7 +1,8 @@
/// <reference types="vite/client" />
interface ImportMetaEnv {
readonly VITE_API_BASE_URL: string
readonly VITE_NKODE_API_URL: string
readonly VITE_API_URL: string
}
interface ImportMeta {