Skip to content

Commit c429cb2

Browse files
committed
Update the Vite configuration to correct the path resolution to use __dirname
1 parent aa4fb9d commit c429cb2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

frontend/vite.config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import path from "node:path";
2-
import { fileURLToPath } from "node:url";
32
import { defineConfig } from "vite";
43
import react from "@vitejs/plugin-react-swc";
54
import tailwindcss from "@tailwindcss/vite";
@@ -10,7 +9,7 @@ export default defineConfig({
109
base: "/app/",
1110
resolve: {
1211
alias: {
13-
"@": path.resolve(path.dirname(fileURLToPath(import.meta.url)), "src"),
12+
"@": path.resolve(__dirname, "./src"),
1413
},
1514
},
1615
server: {

0 commit comments

Comments
 (0)