File tree Expand file tree Collapse file tree 2 files changed +13
-24
lines changed Expand file tree Collapse file tree 2 files changed +13
-24
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import {
10
10
} from 'react-icons/fa' ;
11
11
12
12
const Contact = ( ) => {
13
- const url = process . env . REACT_APP_API_URL ;
13
+ const url = process . env . REACT_APP_BACKEND_URL ;
14
14
const [ data , setData ] = useState ( {
15
15
name : "" ,
16
16
email : "" ,
@@ -101,6 +101,4 @@ const Contact = () => {
101
101
) ;
102
102
} ;
103
103
104
- // ... (SocialIcon, InputField, and TextArea components remain the same)
105
-
106
104
export default Contact ;
Original file line number Diff line number Diff line change 1
- import { defineConfig } from "vite " ;
1
+ import path from "path " ;
2
2
import react from "@vitejs/plugin-react" ;
3
- import viteTsconfigPaths from "vite-tsconfig-paths" ;
4
- import svgrPlugin from "vite-plugin-svgr" ;
5
-
6
- // https://vitejs.dev/config/
3
+ import { defineConfig } from "vite" ;
4
+ import { config } from 'dotenv' ;
5
+ config ( ) ;
7
6
export default defineConfig ( {
8
- server : {
9
- watch : {
10
- usePolling : true ,
7
+ plugins : [ react ( ) ] ,
8
+ resolve : {
9
+ alias : {
10
+ "@" : path . resolve ( __dirname , "./src" ) ,
11
11
} ,
12
- host : true ,
13
- port : 8080 ,
14
12
} ,
15
-
16
- plugins : [
17
- react ( ) ,
18
- viteTsconfigPaths ( ) ,
19
- svgrPlugin ( {
20
- svgrOptions : {
21
- icon : true ,
22
- } ,
23
- } ) ,
24
- ] ,
25
- } ) ;
13
+ define : {
14
+ 'process.env' : process . env
15
+ }
16
+ } ) ;
You can’t perform that action at this time.
0 commit comments