Skip to content
This repository was archived by the owner on Sep 8, 2024. It is now read-only.

Commit 4d118c7

Browse files
author
Marcus Reinhardt
committed
updates
1 parent 42ca2d8 commit 4d118c7

File tree

5 files changed

+41
-35
lines changed

5 files changed

+41
-35
lines changed

apps/docs/next.config.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// Importing env files here to validate on build
22
import "./src/env.mjs"
33

4-
//import { withNextDevtools } from '@next-devtools/core/plugin'
4+
import { withNextDevtools } from '@next-devtools/core/plugin'
55

66
/** @type {import("next").NextConfig} */
77
const config = {
8-
output: "export",
8+
//output: "export",
99

1010
reactStrictMode: true,
1111
/** Enables hot reloading for local packages without a build step */
@@ -19,5 +19,5 @@ const config = {
1919
typescript: { ignoreBuildErrors: true },
2020
}
2121

22-
//export default withNextDevtools(config)
23-
export default config
22+
export default withNextDevtools(config)
23+
//export default config

apps/docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"@acme/helpers": "workspace:*",
1717
"@acme/markdoc-base": "workspace:*",
1818
"@acme/ui": "workspace:*",
19-
"@next-devtools/core": "0.1.3-beta.0",
19+
"@next-devtools/core": "0.1.3",
2020
"@t3-oss/env-nextjs": "0.7.1",
2121
"@tanstack/query-core": "5.17.1",
2222
"@tanstack/react-query": "5.17.1",

apps/docs/src/app/layout.tsx

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type { Metadata } from "next"
2-
3-
//import { NextDevtoolsProvider } from "@next-devtools/core"
2+
import { NextDevtoolsProvider } from "@next-devtools/core"
43

54
import { TailwindIndicator } from "@acme/ui/components"
65

@@ -22,21 +21,21 @@ export default function Layout({ children }: { children: React.ReactNode }) {
2221
<html lang="en" suppressHydrationWarning={true}>
2322
<head />
2423
<body>
25-
{/* <NextDevtoolsProvider> */}
26-
<Providers
27-
defaultTheme="light"
28-
enableSystem
29-
disableTransitionOnChange
30-
attribute="class"
31-
>
32-
<div className="relative flex flex-col">
33-
<SiteHeader />
34-
{children}
35-
<SiteFooter />
36-
</div>
37-
<TailwindIndicator />
38-
</Providers>
39-
{/* </NextDevtoolsProvider> */}
24+
<NextDevtoolsProvider>
25+
<Providers
26+
defaultTheme="light"
27+
enableSystem
28+
disableTransitionOnChange
29+
attribute="class"
30+
>
31+
<div className="relative flex flex-col">
32+
<SiteHeader />
33+
{children}
34+
<SiteFooter />
35+
</div>
36+
<TailwindIndicator />
37+
</Providers>
38+
</NextDevtoolsProvider>
4039
</body>
4140
</html>
4241
)

apps/docs/src/components/site-header.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1+
"use client"
2+
13
import Link from "next/link"
24

5+
//import { useNavigationStore } from "@/hooks/navigation"
6+
37
import { Logo, ThemeToggle } from "@acme/ui/components"
4-
import { useNavigationStore } from '@/hooks/navigation'
58

69
export function SiteHeader() {
7-
const navigationHook = useNavigationStore()
10+
// const navigationHook = useNavigationStore()
811

912
return (
1013
<header className=" sticky top-0 z-50 w-full border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60">

pnpm-lock.yaml

Lines changed: 15 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)