try fix cors issues
All checks were successful
CI / build (push) Successful in 13s
CI / lint (push) Successful in 7s
CI / build-and-push-docker (push) Successful in 12s

This commit is contained in:
2025-08-29 15:57:21 +02:00
parent 12f1e0ed69
commit 5f5f0c46fe
6 changed files with 31 additions and 19 deletions

View File

@@ -1,9 +1,10 @@
import path from "node:path";
import react from "@vitejs/plugin-react-swc";
import { defineConfig } from "vite";
import mkcert from 'vite-plugin-mkcert'
export default defineConfig({
plugins: [react()],
plugins: [react(), mkcert()],
resolve: {
alias: {
"@": path.resolve(__dirname, "src"),
@@ -15,14 +16,4 @@ export default defineConfig({
"@slices": path.resolve(__dirname, "src/store/slices"),
},
},
server: {
proxy: {
"/api": {
target: "https://home.rivercry.com",
changeOrigin: true,
secure: false,
rewrite: (path) => path.replace(/^\/api/, "/api"),
},
},
},
});