mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-23 03:40:14 +01:00
build: install and configure Vite, move index.html
This commit is contained in:
parent
78dabe55ae
commit
6498ab79a4
7 changed files with 2271 additions and 11 deletions
40
client/vite.config.ts
Normal file
40
client/vite.config.ts
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
import { defineConfig } from "vite";
|
||||
import react from "@vitejs/plugin-react";
|
||||
import path from 'path';
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
server: {
|
||||
host: "localhost",
|
||||
port: 3090,
|
||||
strictPort: false,
|
||||
proxy: {
|
||||
"/api": {
|
||||
target: "http://localhost:3080",
|
||||
changeOrigin: true,
|
||||
}
|
||||
}
|
||||
},
|
||||
plugins: [react()],
|
||||
build: {
|
||||
sourcemap: true,
|
||||
outDir: "./public",
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
"~": path.join(__dirname, "src/"),
|
||||
},
|
||||
},
|
||||
define: {
|
||||
// global: {},
|
||||
// process: {
|
||||
// env: {
|
||||
// VITE_APP_API: process?.env.VITE_APP_API || 'production',
|
||||
// },
|
||||
// },
|
||||
},
|
||||
});
|
||||
|
||||
// module.exports = {
|
||||
// plugins: [require("tailwindcss")],
|
||||
// };
|
||||
Loading…
Add table
Add a link
Reference in a new issue