IOPaint icon indicating copy to clipboard operation
IOPaint copied to clipboard

request failed with status code 404

Open Code-dogcreatior opened this issue 1 year ago • 0 comments

I start backend with (iopaint start --host 0.0.0.0 --port 8099) and the frontend(npm run dev),it works fine.However,when I run (npm run build) ,the frontend shows "request failed with status code 404".

vite.config.ts: import path from "path" import react from "@vitejs/plugin-react" import { defineConfig, loadEnv } from "vite"

export default defineConfig(({ mode }) => { const env = loadEnv(mode, process.cwd(), '')

return { base: '/', plugins: [react()], resolve: { alias: { "@": path.resolve(__dirname, "./src"), } } } })

.env.local VITE_BACKEND=http://localhost:8099

Code-dogcreatior avatar Jul 29 '24 15:07 Code-dogcreatior