Mongoose not connecting, help pls ;-;
Unanswered
Least Grebe posted this in #help-forum
Least GrebeOP
import { Hono } from 'hono';
import mongoose from 'mongoose';
import cors from 'cors';
import userModel from './models/user.js';
import config from './env.json' assert { type: 'json' };
import signupRoute from './routes/signup.js';
import signinRoute from './routes/signin.js';
import verificationRoute from './routes/verify.js';
import responseRoute from './routes/response.js';
import userAuthRoute from './routes/userauth.js';
const app = new Hono();
// app.use(Hono.json());
// app.use(cors());
mongoose.connect(config.MONGO_URL, {
useNewUrlParser: true,
useUnifiedTopology: true,
})why do i keep getting that error, trying to fix from some hours now
1 Reply
Least GrebeOP
i am using the wrangler cloudflare thing, it did work on normal nodemon, but im trying to put it in production now