// vite.config.ts
import { defineConfig } from "@solidjs/start/config";
import tailwindcss from "@tailwindcss/vite";
var vite_config_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
        }
      }
    }
  }
});
export {
  vite_config_default as default
};
