This commit is contained in:
Timothy Jaeryang Baek committed 2026-08-16 23:47:02 -07:00
1 parent 3e186abdd9
commit 75df30c0ea
3 files changed
+31 -4

No files matched your search

+2 -3
View File
@@ -1,4 +1,3 @@
import { browser, dev } from '$app/environment';
// import { version } from '../../package.json'; // import { version } from '../../package.json';
// LICENSE covers this Open WebUI branding surface, including name, logo, // LICENSE covers this Open WebUI branding surface, including name, logo,
@@ -7,8 +6,8 @@ import { browser, dev } from '$app/environment';
// https://docs.openwebui.com/license. // https://docs.openwebui.com/license.
export const APP_NAME = 'Open WebUI'; export const APP_NAME = 'Open WebUI';
export const WEBUI_HOSTNAME = browser ? (dev ? `${location.hostname}:8080` : ``) : ''; export const WEBUI_HOSTNAME = '';
export const WEBUI_BASE_URL = browser ? (dev ? `http://${WEBUI_HOSTNAME}` : ``) : ``; export const WEBUI_BASE_URL = '';
export const WEBUI_API_BASE_URL = `${WEBUI_BASE_URL}/api/v1`; export const WEBUI_API_BASE_URL = `${WEBUI_BASE_URL}/api/v1`;
export const OLLAMA_API_BASE_URL = `${WEBUI_BASE_URL}/ollama`; export const OLLAMA_API_BASE_URL = `${WEBUI_BASE_URL}/ollama`;
+1 -1
View File
@@ -62,7 +62,7 @@
removeTerminalConnection removeTerminalConnection
} from '$lib/utils/connections'; } from '$lib/utils/connections';
import { WEBUI_API_BASE_URL, WEBUI_BASE_URL, WEBUI_HOSTNAME } from '$lib/constants'; import { WEBUI_API_BASE_URL, WEBUI_BASE_URL } from '$lib/constants';
import { import {
bestMatchingLanguage, bestMatchingLanguage,
cleanText, cleanText,
+28
View File
@@ -3,6 +3,8 @@ import { defineConfig } from 'vite';
import { viteStaticCopy } from 'vite-plugin-static-copy'; import { viteStaticCopy } from 'vite-plugin-static-copy';
const backendTarget = 'http://localhost:8080';
export default defineConfig({ export default defineConfig({
plugins: [ plugins: [
sveltekit(), sveltekit(),
@@ -23,6 +25,32 @@ export default defineConfig({
build: { build: {
sourcemap: true sourcemap: true
}, },
server: {
proxy: {
'/api': {
target: backendTarget,
changeOrigin: true,
ws: true
},
'/ollama': {
target: backendTarget,
changeOrigin: true
},
'/openai': {
target: backendTarget,
changeOrigin: true
},
'/oauth': {
target: backendTarget,
changeOrigin: true
},
'/ws': {
target: backendTarget,
changeOrigin: true,
ws: true
}
}
},
worker: { worker: {
format: 'es' format: 'es'
}, },