From 395240b30cd9f928050ff5dd0530626f158a5c2f Mon Sep 17 00:00:00 2001 From: shivamsinghcse Date: Mon, 2 Dec 2024 21:09:24 +0530 Subject: [PATCH 1/2] Adding workflow --- .github/workflows/build.yml | 8 ++++---- apps/.github/workflows/build.yml | 0 2 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 apps/.github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c8b64f0e..0512bcb2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,13 +13,13 @@ jobs: - name: Use Node.js uses: actions/setup-node@v3 with: - node-version: '20' - + node-version: "20" + - name: Install Dependencies run: npm install - + - name: Generate prisma client run: npm run db:generate - + - name: Run Build run: npm run build diff --git a/apps/.github/workflows/build.yml b/apps/.github/workflows/build.yml new file mode 100644 index 00000000..e69de29b From 30772673839c2cad7a75030f887f83ea23f89912 Mon Sep 17 00:00:00 2001 From: shivamsinghcse Date: Mon, 2 Dec 2024 21:26:35 +0530 Subject: [PATCH 2/2] Adding workflow --- apps/user-app/README.md | 1 + apps/user-app/app/page.tsx | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/user-app/README.md b/apps/user-app/README.md index d3645357..4234b983 100644 --- a/apps/user-app/README.md +++ b/apps/user-app/README.md @@ -26,3 +26,4 @@ You can check out [the Next.js GitHub repository](https://github.com/vercel/next The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_source=github.com&utm_medium=referral&utm_campaign=turborepo-readme) from the creators of Next.js. Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. +test for cicd diff --git a/apps/user-app/app/page.tsx b/apps/user-app/app/page.tsx index 0288eb02..c2885aa1 100644 --- a/apps/user-app/app/page.tsx +++ b/apps/user-app/app/page.tsx @@ -1,12 +1,12 @@ import { getServerSession } from "next-auth"; -import { redirect } from 'next/navigation' +import { redirect } from "next/navigation"; import { authOptions } from "./lib/auth"; export default async function Page() { const session = await getServerSession(authOptions); if (session?.user) { - redirect('/dashboard') + redirect("/dashboard"); } else { - redirect('/api/auth/signin') + redirect("/api/auth/signin"); } }