fix-server/4-mar-26 #67

Merged
bagasbanuna merged 5 commits from fix-server/4-mar-26 into staging 2026-03-04 16:44:06 +08:00
7 changed files with 157 additions and 233 deletions
Showing only changes of commit ee05d0c71f - Show all commits

View File

@@ -53,7 +53,8 @@ jobs:
file: ./Dockerfile
push: true
platforms: linux/amd64
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.tag }}
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.tag }}
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
no-cache: true

View File

@@ -4,9 +4,9 @@ declare global {
var prisma: PrismaClient | undefined;
}
if (!process.env.DATABASE_URL) {
throw new Error("DATABASE_URL is required but not found in environment variables");
}
// if (!process.env.DATABASE_URL) {
// throw new Error("DATABASE_URL is required but not found in environment variables");
// }
const prisma =
global.prisma ??