fix: reduce vercel costs

This commit is contained in:
Oğuz Gül
2026-03-19 15:16:07 +03:00
parent 6505f7601f
commit a46ef57a60
7 changed files with 9 additions and 3 deletions

View File

@@ -12,7 +12,7 @@ Sentry.init({
enabled: process.env.NODE_ENV === "production",
// Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control.
tracesSampleRate: 1,
tracesSampleRate: 0.1,
// Enable logs to be sent to Sentry
enableLogs: true,

View File

@@ -11,7 +11,7 @@ Sentry.init({
enabled: process.env.NODE_ENV === "production",
// Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control.
tracesSampleRate: 1,
tracesSampleRate: 0.1,
// Enable logs to be sent to Sentry
enableLogs: true,

View File

@@ -8,6 +8,7 @@ export const size = {
height: 630,
};
export const contentType = "image/png";
export const revalidate = 3600;
const radiusMap: Record<string, number> = {
none: 0,

View File

@@ -23,6 +23,8 @@ function getUserIdentifier(user: { email: string; username: string; githubUserna
return user.githubUsername || (isUnclaimedAccount ? user.username : user.email);
}
export const revalidate = 3600;
export async function GET() {
try {
const prompts = await db.prompt.findMany({

View File

@@ -8,6 +8,8 @@ function getUserIdentifier(user: {
return user.githubUsername || user.username;
}
export const revalidate = 3600;
export async function GET() {
try {
const prompts = await db.prompt.findMany({

View File

@@ -8,6 +8,7 @@ export const size = {
height: 630,
};
export const contentType = "image/png";
export const revalidate = 3600;
const typeLabels: Record<string, string> = {
TEXT: "Text Prompt",

View File

@@ -32,7 +32,7 @@ Sentry.init({
integrations: [Sentry.replayIntegration()],
// Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control.
tracesSampleRate: 1,
tracesSampleRate: 0.1,
// Enable logs to be sent to Sentry
enableLogs: true,