diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index bf506ef..70697ef 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -43,3 +43,7 @@ jobs:
- name: Build Project
run: pnpm run build
+ env:
+ NEXT_PUBLIC_CONVEX_URL: "https://insightful-pheasant-237.convex.cloud"
+ NEXT_PUBLIC_CONVEX_SITE_URL: "https://insightful-pheasant-237.convex.site"
+ NEXT_PUBLIC_SITE_URL: "http://localhost:3000"
diff --git a/app/(shared-layout)/test/page.tsx b/app/(shared-layout)/test/page.tsx
new file mode 100644
index 0000000..43b9f74
--- /dev/null
+++ b/app/(shared-layout)/test/page.tsx
@@ -0,0 +1,15 @@
+"use client";
+
+import { api } from "@/convex/_generated/api";
+import { useQuery } from "convex/react";
+
+export default function Page() {
+ const tasks = useQuery(api.tasks.get);
+ return (
+
+ {tasks?.map(({ _id, text }) => (
+ {text}
+ ))}
+
+ );
+}
diff --git a/app/api/auth/[...all]/route.ts b/app/api/auth/[...all]/route.ts
new file mode 100644
index 0000000..8d7e031
--- /dev/null
+++ b/app/api/auth/[...all]/route.ts
@@ -0,0 +1,3 @@
+import { handler } from "@/lib/auth-server";
+
+export const { GET, POST } = handler;
diff --git a/app/auth/sign-up/page.tsx b/app/auth/sign-up/page.tsx
index f99cb57..97dcc0f 100644
--- a/app/auth/sign-up/page.tsx
+++ b/app/auth/sign-up/page.tsx
@@ -19,6 +19,7 @@ import {
FieldLabel,
} from "@/components/ui/field";
import { Button } from "@/components/ui/button";
+import { authClient } from "@/lib/auth-client";
export default function SignupPage() {
const form = useForm>({
@@ -31,8 +32,12 @@ export default function SignupPage() {
},
});
- const onSubmit = () => {
- console.log("yoo");
+ const onSubmit = async (data: z.infer) => {
+ await authClient.signUp.email({
+ email: data.email,
+ name: data.name,
+ password: data.password,
+ });
};
return (
diff --git a/app/layout.tsx b/app/layout.tsx
index bf63635..11c5617 100644
--- a/app/layout.tsx
+++ b/app/layout.tsx
@@ -3,6 +3,7 @@ import React from "react";
import { Outfit, Geist_Mono } from "next/font/google";
import "./globals.css";
import { ThemeProvider } from "@/components/ui/theme-provider";
+import { ConvexClientProvider } from "../components/web/ConvexClientProvider";
const outfit = Outfit({
variable: "--font-sans",
@@ -35,7 +36,7 @@ export default function RootLayout({
disableTransitionOnChange
>
- {children}
+ {children}