clean up debug code and local dev artifacts

This commit is contained in:
vimtor
2026-05-14 23:29:42 +02:00
parent 668133e604
commit e0c7f9b91b
5 changed files with 6 additions and 32 deletions

View File

@@ -70,8 +70,7 @@ export const auth = new sst.cloudflare.Worker("AuthApi", {
////////////////
export const stripeWebhook = new stripe.WebhookEndpoint("StripeWebhookEndpoint", {
// url: $interpolate`https://${domain}/stripe/webhook`,
url: "https://opencode-43.localcan.dev/stripe/webhook",
url: $interpolate`https://${domain}/stripe/webhook`,
enabledEvents: [
"checkout.session.async_payment_failed",
"checkout.session.async_payment_succeeded",

View File

@@ -155,11 +155,11 @@ export async function POST(input: APIEvent) {
})
.where(eq(BillingTable.workspaceID, workspaceID))
// await tx.insert(LiteTable).values({
// workspaceID,
// id: Identifier.create("lite"),
// userID: userID,
// })
await tx.insert(LiteTable).values({
workspaceID,
id: Identifier.create("lite"),
userID: userID,
})
if (userEmail) {
if (coupon === LiteData.firstMonth100Coupon) {
@@ -174,8 +174,6 @@ export async function POST(input: APIEvent) {
}
})
console.log("creating referral tasks")
await Referral.createFromLiteSubscription({
workspaceID,
userID,

View File

@@ -58,18 +58,6 @@
border-radius: 0 2px 2px 0;
}
}
&[data-nav-child] {
margin-top: calc(-1 * var(--space-2));
margin-left: var(--space-5);
padding-top: var(--space-2);
padding-bottom: var(--space-2);
font-size: var(--font-size-xs);
&.active::before {
display: none;
}
}
}
}
}
@@ -133,12 +121,6 @@
border-radius: 2px 2px 0 0;
}
}
&[data-nav-child] {
padding-left: var(--space-2);
padding-right: var(--space-2);
font-size: var(--font-size-xs);
}
}
}
}

View File

@@ -382,8 +382,6 @@ export async function handler(
headers: resHeaders,
})
} catch (error: any) {
console.log('error')
console.log(error)
logger.metric({
"error.type": error.constructor.name,
"error.message": error.message,
@@ -702,7 +700,6 @@ export async function handler(
}
function validateBilling(authInfo: AuthInfo, modelInfo: ModelInfo): BillingSource {
return 'lite'
if (!authInfo) return "anonymous"
if (authInfo.provider?.credentials) return "byok"
if (authInfo.isFree) return "free"

View File

@@ -1,8 +1,6 @@
import { Resource } from "sst"
import { defineConfig } from "drizzle-kit"
console.log(Resource.Database)
export default defineConfig({
out: "./migrations/",
strict: true,