Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Sunglasses authored Oct 1, 2024
2 parents d13f618 + 88cce6a commit f4a3a22
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 24 deletions.
4 changes: 1 addition & 3 deletions src/components/Contact.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
} from 'react-icons/fa';

const Contact = () => {
const url = process.env.REACT_APP_API_URL;
const url = process.env.REACT_APP_BACKEND_URL;
const [data, setData] = useState({
name: "",
email: "",
Expand Down Expand Up @@ -101,6 +101,4 @@ const Contact = () => {
);
};

// ... (SocialIcon, InputField, and TextArea components remain the same)

export default Contact;
33 changes: 12 additions & 21 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,25 +1,16 @@
import { defineConfig } from "vite";
import path from "path";
import react from "@vitejs/plugin-react";
import viteTsconfigPaths from "vite-tsconfig-paths";
import svgrPlugin from "vite-plugin-svgr";

// https://vitejs.dev/config/
import { defineConfig } from "vite";
import { config } from 'dotenv';
config();
export default defineConfig({
server: {
watch: {
usePolling: true,
plugins: [react()],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
host: true,
port: 8080,
},

plugins: [
react(),
viteTsconfigPaths(),
svgrPlugin({
svgrOptions: {
icon: true,
},
}),
],
});
define: {
'process.env': process.env
}
});

0 comments on commit f4a3a22

Please sign in to comment.