mirror of
https://github.com/f/awesome-chatgpt-prompts.git
synced 2026-04-18 12:10:11 +00:00
fix: reduce vercel costs
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user