This commit is contained in:
2025-05-09 10:47:29 +08:00
parent aa6854b6ab
commit b91d7405fc
3 changed files with 14 additions and 3 deletions

View File

@@ -2,4 +2,4 @@ PUBLIC_JUDGE0API_URL=http://10.13.114.214:8082
PUBLIC_MAXKB_URL=
PUBLIC_CODEAPI_URL=http://10.13.114.214:8092
PUBLIC_PYVIZ_URL=http://10.13.114.214:9000
PUBLIC_ICONIFY=http://10.13.114.214:8098
PUBLIC_ICONIFY_URL=http://10.13.114.214:8098

View File

@@ -52,8 +52,8 @@ const app = createApp(App)
app.use(naive)
app.mount("#app")
if (!!import.meta.env.PUBLIC_ICONIFY) {
if (!!import.meta.env.PUBLIC_ICONIFY_URL) {
addAPIProvider("", {
resources: [import.meta.env.PUBLIC_ICONIFY],
resources: [import.meta.env.PUBLIC_ICONIFY_URL],
})
}

11
src/rsbuild-env.d.ts vendored Normal file
View File

@@ -0,0 +1,11 @@
interface ImportMetaEnv {
readonly PUBLIC_JUDGE0API_URL: string
readonly PUBLIC_MAXKB_URL: string
readonly PUBLIC_CODEAPI_URL: string
readonly PUBLIC_PYVIZ_URL: string
readonly PUBLIC_ICONIFY_URL: string
}
interface ImportMeta {
readonly env: ImportMetaEnv
}