diff options
| author | Dhravya <[email protected]> | 2024-06-24 20:40:17 -0500 |
|---|---|---|
| committer | Dhravya <[email protected]> | 2024-06-24 20:40:17 -0500 |
| commit | e7a80ffd441ea93f499d60aec240d280b5501d5a (patch) | |
| tree | 69604bcc06e92f61ebb668704ab9a8c9baeb8b06 /apps/web/app | |
| parent | Merge pull request #80 from Dhravya/telegram-bot (diff) | |
| download | supermemory-e7a80ffd441ea93f499d60aec240d280b5501d5a.tar.xz supermemory-e7a80ffd441ea93f499d60aec240d280b5501d5a.zip | |
drizzle-orm in dependencies, prod wrangler.toml
Diffstat (limited to 'apps/web/app')
| -rw-r--r-- | apps/web/app/(canvas)/canvas/page.tsx | 5 | ||||
| -rw-r--r-- | apps/web/app/api/telegram/route.ts | 4 |
2 files changed, 4 insertions, 5 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; |