This commit is contained in:
omkieit 2024-09-04 11:23:00 +05:30
parent 2773225ff9
commit ca0005caaa
6 changed files with 16 additions and 7 deletions

View File

@ -12,6 +12,7 @@
"bcryptjs": "^2.4.3",
"cors": "^2.8.5",
"dotenv": "^16.4.5",
"ef-api": "file:",
"express": "^4.19.2",
"express-session": "^1.18.0",
"jsonwebtoken": "^9.0.2",
@ -275,6 +276,10 @@
"integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==",
"license": "MIT"
},
"node_modules/ef-api": {
"resolved": "",
"link": true
},
"node_modules/encodeurl": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",

View File

@ -14,6 +14,7 @@
"bcryptjs": "^2.4.3",
"cors": "^2.8.5",
"dotenv": "^16.4.5",
"ef-api": "file:",
"express": "^4.19.2",
"express-session": "^1.18.0",
"jsonwebtoken": "^9.0.2",

File diff suppressed because one or more lines are too long

View File

@ -27,7 +27,7 @@
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css">
<!-- fonts -->
<link href="https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;800&family=Sen:wght@400;700;800&display=swap" rel="stylesheet">
<script type="module" crossorigin src="/assets/index-Ckttlw5i.js"></script>
<script type="module" crossorigin src="/assets/index-DMRb3R0-.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-CyAHZLBw.css">
</head>

View File

@ -1,6 +1,6 @@
import axios from "axios";
const BASE_URL = import.meta.env.REACT_APP_SECRET;
const BASE_URL = import.meta.env.VITE_REACT_APP_SECRET;
// const API = axios.create({baseURL:"http://localhost:3001"});
// const API = axios.create({ baseURL: `${BASE_URL}` });

View File

@ -1,7 +1,7 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// const BASE_URL = import.meta.env.VITE_REACT_APP_SECRET;
// console.log("Base URL:", BASE_URL);
// https://vitejs.dev/config/
export default defineConfig({
@ -9,8 +9,11 @@ export default defineConfig({
server: {
proxy: {
'/users/signup': 'http://localhost:3001', // Proxy requests to /users to the backend server
'/users/signin': 'http://localhost:3001',
// '/users/signup': BASE_URL || 'http://localhost:3002',
// '/users/signin': BASE_URL || 'http://localhost:3002',
'/users/signup': 'http://67.225.129.127:81', // Fallback if BASE_URL is undefined
'/users/signin': 'http://67.225.129.127:81',
},
},