Nextjs
How to fix cors issue in clerk nextjs project
If you're building a web application with Next.js and using the Clerk authentication service, you may encounter a CORS (Cross-Origin Resource Sharing) issue when making API requests outside the app....
read articleHow to set up a Prisma Client That Uses MongoDB as a Second Database
最近在 Recos 项目中将字幕文件的存储转移到了 Mongo 数据库,前端项目采用的是 Nextjs + Prisma 的框架,于是需要 Prisma 添加 Mongo 的支持,其中还是遇到了一些小坑,在此记录下。 Prisma 本身是不支持连接到多个数据库的,实现方法是在 prisma 目录中新建一个文件名为 mongo_schema.prisma generator client { ...
read article