diff --git a/sentry.edge.config.ts b/sentry.edge.config.ts index 91e2a271..44b49909 100644 --- a/sentry.edge.config.ts +++ b/sentry.edge.config.ts @@ -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, diff --git a/sentry.server.config.ts b/sentry.server.config.ts index 43bc9ec3..2014e601 100644 --- a/sentry.server.config.ts +++ b/sentry.server.config.ts @@ -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, diff --git a/src/app/[username]/opengraph-image.tsx b/src/app/[username]/opengraph-image.tsx index fddf4588..65a1b03e 100644 --- a/src/app/[username]/opengraph-image.tsx +++ b/src/app/[username]/opengraph-image.tsx @@ -8,6 +8,7 @@ export const size = { height: 630, }; export const contentType = "image/png"; +export const revalidate = 3600; const radiusMap: Record = { none: 0, diff --git a/src/app/prompts.csv/route.ts b/src/app/prompts.csv/route.ts index 0958176c..a5cd9c81 100644 --- a/src/app/prompts.csv/route.ts +++ b/src/app/prompts.csv/route.ts @@ -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({ diff --git a/src/app/prompts.json/route.ts b/src/app/prompts.json/route.ts index 754a25ca..de1f263c 100644 --- a/src/app/prompts.json/route.ts +++ b/src/app/prompts.json/route.ts @@ -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({ diff --git a/src/app/prompts/[id]/opengraph-image.tsx b/src/app/prompts/[id]/opengraph-image.tsx index 7d6a849c..95358771 100644 --- a/src/app/prompts/[id]/opengraph-image.tsx +++ b/src/app/prompts/[id]/opengraph-image.tsx @@ -8,6 +8,7 @@ export const size = { height: 630, }; export const contentType = "image/png"; +export const revalidate = 3600; const typeLabels: Record = { TEXT: "Text Prompt", diff --git a/src/instrumentation-client.ts b/src/instrumentation-client.ts index a826afd8..1419df73 100644 --- a/src/instrumentation-client.ts +++ b/src/instrumentation-client.ts @@ -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,