Skip to content

Commit

Permalink
fix: next works better
Browse files Browse the repository at this point in the history
  • Loading branch information
finxol committed Dec 12, 2024
1 parent 42ef864 commit c2e646d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
12 changes: 10 additions & 2 deletions apps/auth/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { Metadata } from "next"
import Link from "next/link"
import "./globals.css"

export const metadata: Metadata = {
Expand All @@ -12,8 +13,15 @@ export default function RootLayout({
children: React.ReactNode
}>) {
return (
<html lang="en">
<body>
<html lang="en" className="bg-black">
<body className="bg-black text-white">
<header className="w-full bg-red-600 text-3xl px-4 py-2">
<h1>
<Link href="/">
Karr Auth
</Link>
</h1>
</header>
{children}
</body>
</html>
Expand Down
5 changes: 3 additions & 2 deletions apps/auth/src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { Suspense } from "react"
import Button from "@ui/components/Button.tsx"
import { Button, Loading } from "@ui/components"

export default function Home() {
return (
<div>
<h1>Welcome to Karr Auth!</h1>
<Loading />

<Suspense fallback={<div>Loading...</div>}>
<Suspense fallback={<Loading />}>
<Button>
Click me!
</Button>
Expand Down
9 changes: 5 additions & 4 deletions apps/auth/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,16 @@
"name": "next"
}
],
"baseUrl": ".",
"paths": {
"~/*": [
"./src/*"
],
"@ui/*": [
"../../packages/ui/src/*"
"@ui/components": [
"../../packages/ui/src/components/index"
],
"@util/*": [
"../../packages/util/src/*"
"@util": [
"../../packages/util/src/utilities"
]
}
},
Expand Down

0 comments on commit c2e646d

Please sign in to comment.