24 lines
643 B
TypeScript
24 lines
643 B
TypeScript
/// <reference types="vitest/config" />
|
|
import { defineConfig } from "@solidjs/start/config";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
export default defineConfig({
|
|
vite: {
|
|
plugins: [tailwindcss()],
|
|
server: {
|
|
proxy: {
|
|
"/api/gateway": {
|
|
target: "http://localhost:9100",
|
|
changeOrigin: true,
|
|
rewrite: (path) =>
|
|
path
|
|
.replace(/^\/api\/gateway\/api(\/|$)/, "/api$1")
|
|
.replace(/^\/api\/gateway(\/|$)/, "/api$1"),
|
|
},
|
|
"/api": {
|
|
target: "http://localhost:9100",
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
});
|