mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2025-03-13 05:32:24 +00:00
Merge f41675b7cb
into 6ffdbf074d
This commit is contained in:
commit
b3a75113a4
2 changed files with 89 additions and 69 deletions
|
@ -1,4 +1,4 @@
|
|||
import { defineConfig } from "vite"
|
||||
import { defineConfig, loadEnv } from "vite"
|
||||
import { fileURLToPath, URL } from "url"
|
||||
import postcss from "./postcss.config.js"
|
||||
import react from "@vitejs/plugin-react"
|
||||
|
@ -8,7 +8,9 @@ import { visualizer } from "rollup-plugin-visualizer"
|
|||
dns.setDefaultResultOrder("verbatim")
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
export default defineConfig(({ mode })=> {
|
||||
const env = loadEnv(mode, process.cwd());
|
||||
return {
|
||||
assetsInclude: [
|
||||
'./public/piper/ort-wasm-simd-threaded.wasm',
|
||||
'./public/piper/piper_phonemize.wasm',
|
||||
|
@ -19,7 +21,15 @@ export default defineConfig({
|
|||
},
|
||||
server: {
|
||||
port: 3000,
|
||||
host: "localhost"
|
||||
host: '0.0.0.0',
|
||||
proxy: {
|
||||
[env.VITE_API_BASE]: {
|
||||
target: 'http://localhost:3001', // Address of the back-end server
|
||||
changeOrigin: true,
|
||||
ws: true,
|
||||
rewrite: (path) => path
|
||||
}
|
||||
}
|
||||
},
|
||||
define: {
|
||||
"process.env": process.env
|
||||
|
@ -84,4 +94,5 @@ export default defineConfig({
|
|||
plugins: []
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
9
pnpm-lock.yaml
generated
Normal file
9
pnpm-lock.yaml
generated
Normal file
|
@ -0,0 +1,9 @@
|
|||
lockfileVersion: '9.0'
|
||||
|
||||
settings:
|
||||
autoInstallPeers: true
|
||||
excludeLinksFromLockfile: false
|
||||
|
||||
importers:
|
||||
|
||||
.: {}
|
Loading…
Add table
Reference in a new issue