Self hosted Prisma Data Proxy.
credits:
other implementations:
- https://github.com/OnurGvnc/prisma-data-proxy-fastify
- https://github.com/aiji42/prisma-data-proxy-alt
- clone this repository
- update
schema.prisma
- set environment variables. (check out main.go)
go run main.go
- add the line
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
at the start of the node.js app - detalils: prisma data proxy.
This project also serves as an experimental Redis REST API that is compatible with the @upstash/redis package.
environment variables: (check out main.go)
import { Redis } from '@upstash/redis'
const redis = new Redis({
url: 'http://localhost:4466/redis',
token: 'SECRET_API_KEY',
responseEncoding: false,
})