mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-22 03:45:23 +00:00
clean up debug code and local dev artifacts
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
import { Resource } from "sst"
|
||||
import { defineConfig } from "drizzle-kit"
|
||||
|
||||
console.log(Resource.Database)
|
||||
|
||||
export default defineConfig({
|
||||
out: "./migrations/",
|
||||
strict: true,
|
||||
|
||||
Reference in New Issue
Block a user