Skip to content

Commit a51c37b

Browse files
Remove console logs and add polar.ts file
1 parent 3605994 commit a51c37b

File tree

4 files changed

+0
-12
lines changed

4 files changed

+0
-12
lines changed

app/api/chat/route.ts

-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ export async function POST(req: Request) {
2121
systemPrompt,
2222
} = await req.json();
2323

24-
console.log("model", model);
25-
2624
const defaultSystemPrompt = `
2725
You are an advanced AI assistant in an interactive playground environment. Your primary goals are:
2826
1. Knowledge & Assistance: Share knowledge and provide assistance across a wide range of topics

convex/http.ts

-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ http.route({
99
handler: paymentWebhook,
1010
});
1111

12-
// Log that routes are configured
13-
console.log("HTTP routes configured");
1412

1513
// Convex expects the router to be the default export of `convex/http.js`.
1614
export default http;

convex/subscriptions.ts

-1
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,6 @@ export const paymentWebhook = httpAction(async (ctx, request) => {
291291
});
292292

293293
} catch (error) {
294-
console.log("No JSON body or parsing failed");
295294
return new Response(JSON.stringify({ error: "Invalid request body" }), {
296295
status: 400,
297296
headers: {

lib/polar.ts

-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
import { Polar } from "@polar-sh/sdk";
22

3-
// For debugging - log all environment variables
4-
console.log("Environment variables available:", {
5-
NODE_ENV: process.env.NODE_ENV,
6-
POLAR_ACCESS_TOKEN: process.env.POLAR_ACCESS_TOKEN ? "[exists]" : "[missing]",
7-
POLAR_ORGANIZATION_ID: process.env.POLAR_ORGANIZATION_ID ? "[exists]" : "[missing]"
8-
});
9-
103
// Use a default token for development if the environment variable is missing
114
const accessToken = process.env.POLAR_ACCESS_TOKEN
125

0 commit comments

Comments
 (0)