update
This commit is contained in:
@@ -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
|
||||
@@ -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
11
src/rsbuild-env.d.ts
vendored
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user