Sanster/IOPaint

request failed with status code 404

Closed this issue · 2 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

This issue is stale because it has been open for 30 days with no activity.

This issue was closed because it has been inactive for 14 days since being marked as stale.