nginx update
Some checks failed
Build and Deploy Nuxt / build (push) Failing after 18s

This commit is contained in:
2026-03-17 22:15:44 +01:00
parent 45404157b3
commit 15c37f204c
5 changed files with 12992 additions and 2 deletions

View File

@@ -1,11 +1,17 @@
const express = require("express");
const cors = require('cors');
require('dotenv').config();
const app = express();
const connectDB = require("./db");
// connect database
connectDB();
// connectDB();
app.use(cors({
origin: 'http://localhost:3000',
credentials: true, // if using cookies/auth
}));
app.get("/api/test", (req, res) => {
console.log("Hey");