Test mongosh
All checks were successful
Build and Deploy Nuxt / build (push) Successful in 59s

This commit is contained in:
2026-03-18 14:52:27 +01:00
parent 225a0ed350
commit b32257f25f
5 changed files with 5 additions and 473 deletions

View File

@@ -1,3 +0,0 @@
PORT=5000
DB_URI=mongodb://localhost:27017/
NODE_ENV=development

3
backend/.env.production Normal file
View File

@@ -0,0 +1,3 @@
PORT=5000
DB_URI=mongodb://10.1.1.7:27017/
NODE_ENV=production

2
backend/.gitignore vendored
View File

@@ -13,4 +13,4 @@ logs
# Local env files
.env
.env.*
!.env.example
!.env.production

View File

@@ -6,7 +6,7 @@ const app = express();
const connectDB = require("./db");
// connect database
// connectDB();
connectDB();
app.use(cors({
origin: 'http://localhost:3000',