Skip to content

Commit e7a80ff

Browse files
committed
drizzle-orm in dependencies, prod wrangler.toml
1 parent 4581b2c commit e7a80ff

File tree

6 files changed

+25
-11
lines changed

6 files changed

+25
-11
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Build and Deploy Changes
22

33
on:
44
push:
5-
branches: [main]
5+
branches: [main, codetorso]
66
paths:
77
- "apps/web/**"
88
- "apps/extension/**"

apps/cf-ai-backend/wrangler.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,14 @@ main = "src/index.ts"
33
compatibility_date = "2024-02-23"
44
node_compat = true
55

6+
# [env.preview]
7+
# [[vectorize]]
8+
# binding = "VECTORIZE_INDEX"
9+
# index_name = "supermem-vector-dev"
10+
611
[[vectorize]]
712
binding = "VECTORIZE_INDEX"
8-
index_name = "supermem-vector-dev"
13+
index_name = "supermem-vector-prod"
914

1015
[ai]
1116
binding = "AI"

apps/web/app/(canvas)/canvas/page.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
import { useRouter } from "next/router";
1+
import { redirect } from "next/navigation";
22
import React from "react";
33

44
function page() {
5-
const router = useRouter();
6-
router.push("/home");
5+
redirect("/signin");
76
return <div>page</div>;
87
}
98

apps/web/app/api/telegram/route.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ bot.command("start", async (ctx) => {
2121

2222
const cipherd = cipher(user.id.toString());
2323
await ctx.reply(
24-
`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}`,
24+
`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}`,
2525
);
2626
});
2727

@@ -38,7 +38,7 @@ bot.on("message", async (ctx) => {
3838

3939
if (!dbUser) {
4040
await ctx.reply(
41-
`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}`,
41+
`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}`,
4242
);
4343

4444
return;

apps/web/wrangler.toml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,29 @@
1-
name = "cloudflare-saas-starter"
1+
name = "supermemory-ai"
22
compatibility_date = "2024-03-29"
33
compatibility_flags = [ "nodejs_compat" ]
44
pages_build_output_dir = ".vercel/output/static"
55

6+
67
[placement]
78
mode = "smart"
89

910
[[r2_buckets]]
1011
binding = "STORAGE"
1112
bucket_name = "dev-r2-anycontext"
1213

14+
# [env.preview]
15+
# [[env.preview.d1_databases]]
16+
# binding = "DATABASE"
17+
# database_name = "dev-d1-anycontext"
18+
# database_id = "fc562605-157a-4f60-b439-2a24ffed5b4c"
19+
20+
# [env.production]
21+
# [[env.production.d1_databases]]
22+
1323
[[d1_databases]]
1424
binding = "DATABASE"
15-
database_name = "dev-d1-anycontext"
16-
database_id = "fc562605-157a-4f60-b439-2a24ffed5b4c"
25+
database_name = "prod-d1-supermemory"
26+
database_id = "f527a727-c472-41d4-8eaf-3d7ba0f2f395"
1727

1828
# [[unsafe.bindings]]
1929
# name = "RATELIMITER"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
"aws4fetch": "^1.0.18",
7272
"cheerio": "^1.0.0-rc.12",
7373
"compromise": "^14.13.0",
74-
"drizzle-orm": "^0.30.10",
74+
"drizzle-orm": "^0.31.2",
7575
"framer-motion": "^11.2.6",
7676
"katex": "^0.16.10",
7777
"lucide-react": "^0.379.0",

0 commit comments

Comments
 (0)