This commit is contained in:
omkieit 2024-09-04 12:19:59 +05:30
parent ad659e26d6
commit 1f87594668
4 changed files with 10 additions and 5 deletions

View File

@ -16,6 +16,11 @@ app.use(express.json({ limit: "30mb", extended: true }));
app.use(express.urlencoded({ limit: "30mb", extended: true })); app.use(express.urlencoded({ limit: "30mb", extended: true }));
app.use(cors()); app.use(cors());
// app.use(cors({
// origin: 'http://67.225.129.127:81', // Allow requests from your frontend
// methods: 'GET,POST', // Specify allowed methods
// }));
app.use( app.use(
session({ session({
secret: process.env.SECRET_KEY, secret: process.env.SECRET_KEY,

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"> <link rel="stylesheet" href="https://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css">
<!-- fonts --> <!-- 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"> <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-DMRb3R0-.js"></script> <script type="module" crossorigin src="/assets/index-Cw9IlM2k.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-CyAHZLBw.css"> <link rel="stylesheet" crossorigin href="/assets/index-CyAHZLBw.css">
</head> </head>

View File

@ -9,10 +9,10 @@ export default defineConfig({
server: { server: {
proxy: { proxy: {
// '/users/signup': BASE_URL || 'http://localhost:3002', // '/users/signup': 'http://localhost:3002',
// '/users/signin': BASE_URL || 'http://localhost:3002', // '/users/signin': 'http://localhost:3002',
'/users/signup': 'http://67.225.129.127:3002/', // Fallback if BASE_URL is undefined '/users/signup': 'http://67.225.129.127:3002/',
'/users/signin': 'http://67.225.129.127:3002/', '/users/signin': 'http://67.225.129.127:3002/',
}, },
}, },