drizzle-orm in dependencies, prod wrangler.toml

This commit is contained in:
Dhravya 2024-06-24 20:40:17 -05:00
parent 4581b2c055
commit e7a80ffd44
6 changed files with 25 additions and 11 deletions

View file

@ -2,7 +2,7 @@ name: Build and Deploy Changes
on:
push:
branches: [main]
branches: [main, codetorso]
paths:
- "apps/web/**"
- "apps/extension/**"

View file

@ -3,9 +3,14 @@ main = "src/index.ts"
compatibility_date = "2024-02-23"
node_compat = true
# [env.preview]
# [[vectorize]]
# binding = "VECTORIZE_INDEX"
# index_name = "supermem-vector-dev"
[[vectorize]]
binding = "VECTORIZE_INDEX"
index_name = "supermem-vector-dev"
index_name = "supermem-vector-prod"
[ai]
binding = "AI"

View file

@ -1,9 +1,8 @@
import { useRouter } from "next/router";
import { redirect } from "next/navigation";
import React from "react";
function page() {
const router = useRouter();
router.push("/home");
redirect("/signin");
return <div>page</div>;
}

View file

@ -21,7 +21,7 @@ bot.command("start", async (ctx) => {
const cipherd = cipher(user.id.toString());
await ctx.reply(
`Welcome to Supermemory bot. I am here to help you remember things better. Click here to create and link your accont: http://localhost:3000/signin?telegramUser=${cipherd}`,
`Welcome to Supermemory bot. I am here to help you remember things better. Click here to create and link your accont: https://beta.supermemory.ai/signin?telegramUser=${cipherd}`,
);
});
@ -38,7 +38,7 @@ bot.on("message", async (ctx) => {
if (!dbUser) {
await ctx.reply(
`Welcome to Supermemory bot. I am here to help you remember things better. Click here to create and link your accont: http://localhost:3000/signin?telegramUser=${cipherd}`,
`Welcome to Supermemory bot. I am here to help you remember things better. Click here to create and link your accont: https://beta.supermemory.ai/signin?telegramUser=${cipherd}`,
);
return;

View file

@ -1,8 +1,9 @@
name = "cloudflare-saas-starter"
name = "supermemory-ai"
compatibility_date = "2024-03-29"
compatibility_flags = [ "nodejs_compat" ]
pages_build_output_dir = ".vercel/output/static"
[placement]
mode = "smart"
@ -10,10 +11,19 @@ mode = "smart"
binding = "STORAGE"
bucket_name = "dev-r2-anycontext"
# [env.preview]
# [[env.preview.d1_databases]]
# binding = "DATABASE"
# database_name = "dev-d1-anycontext"
# database_id = "fc562605-157a-4f60-b439-2a24ffed5b4c"
# [env.production]
# [[env.production.d1_databases]]
[[d1_databases]]
binding = "DATABASE"
database_name = "dev-d1-anycontext"
database_id = "fc562605-157a-4f60-b439-2a24ffed5b4c"
database_name = "prod-d1-supermemory"
database_id = "f527a727-c472-41d4-8eaf-3d7ba0f2f395"
# [[unsafe.bindings]]
# name = "RATELIMITER"

View file

@ -71,7 +71,7 @@
"aws4fetch": "^1.0.18",
"cheerio": "^1.0.0-rc.12",
"compromise": "^14.13.0",
"drizzle-orm": "^0.30.10",
"drizzle-orm": "^0.31.2",
"framer-motion": "^11.2.6",
"katex": "^0.16.10",
"lucide-react": "^0.379.0",