Skip to content

Commit f4a3a22

Browse files
Merge branch 'main' into main
2 parents d13f618 + 88cce6a commit f4a3a22

File tree

2 files changed

+13
-24
lines changed

2 files changed

+13
-24
lines changed

src/components/Contact.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
} from 'react-icons/fa';
1111

1212
const Contact = () => {
13-
const url = process.env.REACT_APP_API_URL;
13+
const url = process.env.REACT_APP_BACKEND_URL;
1414
const [data, setData] = useState({
1515
name: "",
1616
email: "",
@@ -101,6 +101,4 @@ const Contact = () => {
101101
);
102102
};
103103

104-
// ... (SocialIcon, InputField, and TextArea components remain the same)
105-
106104
export default Contact;

vite.config.ts

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,16 @@
1-
import { defineConfig } from "vite";
1+
import path from "path";
22
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();
76
export default defineConfig({
8-
server: {
9-
watch: {
10-
usePolling: true,
7+
plugins: [react()],
8+
resolve: {
9+
alias: {
10+
"@": path.resolve(__dirname, "./src"),
1111
},
12-
host: true,
13-
port: 8080,
1412
},
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+
});

0 commit comments

Comments
 (0)