From 194070fb9024e627e8d9472c8ebf9bada6c96ea6 Mon Sep 17 00:00:00 2001 From: jspark2000 Date: Wed, 28 Feb 2024 20:41:41 +0000 Subject: [PATCH] chore: test --- frontend/next.config.js | 4 +--- frontend/src/app/(public)/login/page.tsx | 10 +++++++++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/frontend/next.config.js b/frontend/next.config.js index 25ed361..a12f183 100644 --- a/frontend/next.config.js +++ b/frontend/next.config.js @@ -3,9 +3,7 @@ const nextConfig = { output: 'standalone', reactStrictMode: process.env !== 'production', env: { - NEXTAUTH_URL: process.env.VERCEL_URL - ? `https://${process.env.VERCEL_URL}/next-auth/api/auth` - : process.env.NEXTAUTH_URL + NEXTAUTH_URL: process.env.NEXTAUTH_URL } } diff --git a/frontend/src/app/(public)/login/page.tsx b/frontend/src/app/(public)/login/page.tsx index e5b146e..2b23ff2 100644 --- a/frontend/src/app/(public)/login/page.tsx +++ b/frontend/src/app/(public)/login/page.tsx @@ -1,7 +1,15 @@ +import fetcher from '@/lib/fetcher' import Image from 'next/image' import LoginForm from './_components/LoginForm' -export default function LoginPage() { +export default async function LoginPage() { + try { + const data = await fetcher.get('/test') + console.log(data) + } catch (error) { + console.log(error) + } + return (