Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Commit

Permalink
chore: test
Browse files Browse the repository at this point in the history
  • Loading branch information
jspark2000 committed Feb 28, 2024
1 parent 4e74765 commit 194070f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 1 addition & 3 deletions frontend/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down
10 changes: 9 additions & 1 deletion frontend/src/app/(public)/login/page.tsx
Original file line number Diff line number Diff line change
@@ -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 (
<main className="mx-auto flex w-full max-w-7xl flex-grow flex-col items-center justify-center p-6 lg:px-8">
<div className="flex w-full max-w-[320px] flex-col items-center gap-y-10">
Expand Down

0 comments on commit 194070f

Please sign in to comment.