skip to Main Content

Connect to MinIO in Docker container

I have Minio in docker container called "be_minio". I want connect to that container with my app from another container called "be_api". be_api: build: . restart: always ports: - 8080:80 depends_on: - be_minio be_minio: image: minio/minio restart: always ports: -…

VIEW QUESTION

Mongodb – Import Mongoose lib in api directory in Next js 13.2 app directory gives error

In hello.js import connectMongo from '../../../util/connectDB'; import UserModel from '../../../models/UserModel'; import { NextResponse } from 'next/server' export async function GET(request) { return NextResponse.json({hello: 'Hello, Next.js!'}) } export async function POST(request) { const data = await request.json(); console.log(data); return NextResponse.json(data) }…

VIEW QUESTION
Back To Top
Search