aboutsummaryrefslogtreecommitdiff
path: root/apps/web
diff options
context:
space:
mode:
authorDhravya <[email protected]>2024-06-24 20:40:17 -0500
committerDhravya <[email protected]>2024-06-24 20:40:17 -0500
commite7a80ffd441ea93f499d60aec240d280b5501d5a (patch)
tree69604bcc06e92f61ebb668704ab9a8c9baeb8b06 /apps/web
parentMerge pull request #80 from Dhravya/telegram-bot (diff)
downloadsupermemory-e7a80ffd441ea93f499d60aec240d280b5501d5a.tar.xz
supermemory-e7a80ffd441ea93f499d60aec240d280b5501d5a.zip
drizzle-orm in dependencies, prod wrangler.toml
Diffstat (limited to 'apps/web')
-rw-r--r--apps/web/app/(canvas)/canvas/page.tsx5
-rw-r--r--apps/web/app/api/telegram/route.ts4
-rw-r--r--apps/web/wrangler.toml16
3 files changed, 17 insertions, 8 deletions
diff --git a/apps/web/app/(canvas)/canvas/page.tsx b/apps/web/app/(canvas)/canvas/page.tsx
index 9ef7153a..8b5252af 100644
--- a/apps/web/app/(canvas)/canvas/page.tsx
+++ b/apps/web/app/(canvas)/canvas/page.tsx
@@ -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>;
}
diff --git a/apps/web/app/api/telegram/route.ts b/apps/web/app/api/telegram/route.ts
index b0d05655..59177c4e 100644
--- a/apps/web/app/api/telegram/route.ts
+++ b/apps/web/app/api/telegram/route.ts
@@ -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;
diff --git a/apps/web/wrangler.toml b/apps/web/wrangler.toml
index e651069e..31cf2f27 100644
--- a/apps/web/wrangler.toml
+++ b/apps/web/wrangler.toml
@@ -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"