Files
monitor-im-flur/vite.config.ts
Arif Hasanic 5f5f0c46fe
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
try fix cors issues
2025-08-29 15:57:21 +02:00

20 lines
703 B
TypeScript

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(), mkcert()],
resolve: {
alias: {
"@": path.resolve(__dirname, "src"),
"@components": path.resolve(__dirname, "src/components"),
"@store": path.resolve(__dirname, "src/store"),
"@api": path.resolve(__dirname, "src/api"),
"@types": path.resolve(__dirname, "src/types"),
"@thunks": path.resolve(__dirname, "src/store/thunks"),
"@slices": path.resolve(__dirname, "src/store/slices"),
},
},
});