Skip to content

Commit

Permalink
chore(vercel): debug 3
Browse files Browse the repository at this point in the history
  • Loading branch information
mydearxym committed Mar 2, 2024
1 parent 02df3d0 commit 85149d7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
3 changes: 0 additions & 3 deletions src/app/book-demo/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

import BookDemo from '@/widgets/BookDemo'

export const dynamic = 'force-static'
export const revalidate = 3600

const BookDemoPage = () => {
return <BookDemo />
}
Expand Down
10 changes: 5 additions & 5 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Metadata } from 'next'
import { cookies } from 'next/headers'
// import { cookies } from 'next/headers'
import { Analytics } from '@vercel/analytics/react'
import { SpeedInsights } from '@vercel/speed-insights/next'

Expand All @@ -16,19 +16,19 @@ export const metadata: Metadata = {
}

export default function Layout({ children }: { children: React.ReactNode }) {
const token = cookies().get('jwtToken')?.value || null
// const token = cookies().get('jwtToken')?.value || null

return (
<html lang="en">
<body>
<StyledComponentsRegistry>
<h2>groupher</h2>
{/* <StyledComponentsRegistry>
<GraphQLProvider token={token}>
<RootStoreProvider token={token}>
<h2>groupher</h2>
<GlobalLayout>{children}</GlobalLayout>
</RootStoreProvider>
</GraphQLProvider>
</StyledComponentsRegistry>
</StyledComponentsRegistry> */}
<Analytics />
<SpeedInsights />
</body>
Expand Down
2 changes: 0 additions & 2 deletions src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ export function middleware(request: NextRequest) {
if (url.pathname === '/book-demo') {
const response = NextResponse.next()

console.log('## --> url pathname: ', url.pathname)

response.headers.set(
'Cache-Control',
`public, max-age=${CACHE_DURATION}, s-maxage=${CACHE_DURATION}, stale-while-revalidate=${CACHE_DURATION}`,
Expand Down

0 comments on commit 85149d7

Please sign in to comment.