mirror of
https://github.com/open-webui/open-webui
synced 2025-02-22 13:18:25 +00:00
Some checks are pending
Deploy to HuggingFace Spaces / check-secret (push) Waiting to run
Deploy to HuggingFace Spaces / deploy (push) Blocked by required conditions
Create and publish Docker images with specific build args / build-main-image (linux/amd64) (push) Waiting to run
Create and publish Docker images with specific build args / build-main-image (linux/arm64) (push) Waiting to run
Create and publish Docker images with specific build args / build-cuda-image (linux/amd64) (push) Waiting to run
Create and publish Docker images with specific build args / build-cuda-image (linux/arm64) (push) Waiting to run
Create and publish Docker images with specific build args / build-ollama-image (linux/amd64) (push) Waiting to run
Create and publish Docker images with specific build args / build-ollama-image (linux/arm64) (push) Waiting to run
Create and publish Docker images with specific build args / merge-main-images (push) Blocked by required conditions
Create and publish Docker images with specific build args / merge-cuda-images (push) Blocked by required conditions
Create and publish Docker images with specific build args / merge-ollama-images (push) Blocked by required conditions
Python CI / Format Backend (3.11) (push) Waiting to run
Frontend Build / Format & Build Frontend (push) Waiting to run
Frontend Build / Frontend Unit Tests (push) Waiting to run
44 lines
1.0 KiB
TypeScript
44 lines
1.0 KiB
TypeScript
import { sveltekit } from '@sveltejs/kit/vite';
|
|
import { defineConfig } from 'vite';
|
|
|
|
import { viteStaticCopy } from 'vite-plugin-static-copy';
|
|
|
|
// /** @type {import('vite').Plugin} */
|
|
// const viteServerConfig = {
|
|
// name: 'log-request-middleware',
|
|
// configureServer(server) {
|
|
// server.middlewares.use((req, res, next) => {
|
|
// res.setHeader('Access-Control-Allow-Origin', '*');
|
|
// res.setHeader('Access-Control-Allow-Methods', 'GET');
|
|
// res.setHeader('Cross-Origin-Opener-Policy', 'same-origin');
|
|
// res.setHeader('Cross-Origin-Embedder-Policy', 'require-corp');
|
|
// next();
|
|
// });
|
|
// }
|
|
// };
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
sveltekit(),
|
|
viteStaticCopy({
|
|
targets: [
|
|
{
|
|
src: 'node_modules/onnxruntime-web/dist/*.jsep.*',
|
|
|
|
dest: 'wasm'
|
|
}
|
|
]
|
|
})
|
|
],
|
|
define: {
|
|
APP_VERSION: JSON.stringify(process.env.npm_package_version),
|
|
APP_BUILD_HASH: JSON.stringify(process.env.APP_BUILD_HASH || 'dev-build')
|
|
},
|
|
build: {
|
|
sourcemap: true
|
|
},
|
|
worker: {
|
|
format: 'es'
|
|
}
|
|
});
|