Skip to content

Commit 7309083

Browse files
authored
Import fileURLToPath and path for directory resolution
Add fileURLToPath and path imports for directory handling.
1 parent fd95837 commit 7309083

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

frontend/vite.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
import { defineConfig } from 'vite'
22
import react from '@vitejs/plugin-react'
33
import tailwindcss from '@tailwindcss/vite'
4+
import { fileURLToPath } from 'url'
45
import path from 'path'
56

7+
const __filename = fileURLToPath(import.meta.url)
8+
const __dirname = path.dirname(__filename)
9+
610
// https://vitejs.dev/config/
711
export default defineConfig({
812
plugins: [

0 commit comments

Comments
 (0)