Skip to content

Commit 9fa5817

Browse files
committed
feat: correçao das config do vite
1 parent 14f1d21 commit 9fa5817

1 file changed

Lines changed: 9 additions & 11 deletions

File tree

frontend/vite.config.js

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,25 @@
1-
import react from '@vitejs/plugin-react'
2-
import path from 'path'
3-
import { fileURLToPath } from 'url'
4-
import { defineConfig } from 'vite'
1+
import react from "@vitejs/plugin-react";
2+
import path from "path";
3+
import { fileURLToPath } from "url";
4+
import { defineConfig } from "vite";
55

6-
const __dirname = path.dirname(fileURLToPath(import.meta.url))
7-
8-
const isDev = import.meta.env.DEV
6+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
97

108
export default defineConfig({
119
plugins: [react()],
1210
resolve: {
1311
alias: {
14-
'@': path.resolve(__dirname, './src'),
12+
"@": path.resolve(__dirname, "./src"),
1513
},
1614
},
1715
server: {
1816
port: 5173,
1917
proxy: {
20-
'/api': {
21-
target: 'https://jobsglobalscraper.ddns.net',
18+
"/api": {
19+
target: "https://jobsglobalscraper.ddns.net",
2220
changeOrigin: true,
2321
secure: false,
2422
},
2523
},
2624
},
27-
})
25+
});

0 commit comments

Comments
 (0)