-
I followed the first usage case to add the Swagger docs. The endpoint documentation renders & works correctly locally but fails to build inside a Docker container or in Vercel deployment. The code is an exact replica of "Usage Case 1" from the documentation. When rendering the Swagger docs page (which was working as intended), I encountered the following warning:
I have a couple of questions:
Here's the full log:
|
Beta Was this translation helpful? Give feedback.
Answered by
jashdubal
Oct 5, 2023
Replies: 1 comment 2 replies
-
Problem was resolved by adding a layout.tsx file to the api-docs folder: export const metadata = {
title: 'Next.js',
description: 'Generated by Next.js',
}
export default function RootLayout({
children,
}: {
children: React.ReactNode
}) {
return (
// make this entire page dark mode
<html lang="en">
<body>{children}</body>
</html>
)
} |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
jashdubal
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem was resolved by adding a layout.tsx file to the api-docs folder: