Skip to content

Commit

Permalink
接続文字列に接続タイムアウトと接続制限を追加しました (#604)
Browse files Browse the repository at this point in the history
  • Loading branch information
ttizze authored Feb 22, 2025
2 parents 742a81f + 8009ba0 commit d48964d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion next/src/lib/prisma.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Pool, neonConfig } from "@neondatabase/serverless";
import { PrismaNeon } from "@prisma/adapter-neon";
import { PrismaClient } from "@prisma/client";
const connectionString = process.env.DATABASE_URL || "";
const connectionString = `${process.env.DATABASE_URL || ""}?connect_timeout=15&connection_limit=20`;

// ローカル開発環境用の設定
const isDevelopment = process.env.NODE_ENV === "development";
Expand Down

0 comments on commit d48964d

Please sign in to comment.