mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 19:37:47 +01:00
refac: transformer.js
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
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',
|
||||
@@ -16,7 +18,18 @@ import { defineConfig } from 'vite';
|
||||
// };
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [sveltekit()],
|
||||
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')
|
||||
|
||||
Reference in New Issue
Block a user