feat: add cypress
This commit is contained in:
17
app/[lang]/(test)/layout.tsx
Normal file
17
app/[lang]/(test)/layout.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import type { Metadata } from "next"
|
||||
import type { LangParams, LayoutArgs } from "@/types/params"
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Test Site",
|
||||
}
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
params,
|
||||
}: React.PropsWithChildren<LayoutArgs<LangParams>>) {
|
||||
return (
|
||||
<html lang={params.lang}>
|
||||
<body>{children}</body>
|
||||
</html>
|
||||
)
|
||||
}
|
||||
15
app/[lang]/(test)/test/page.tsx
Normal file
15
app/[lang]/(test)/test/page.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import type { Metadata } from "next"
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Hello World",
|
||||
}
|
||||
|
||||
export default function HelloWorldTestPage() {
|
||||
return (
|
||||
<main>
|
||||
<header>
|
||||
<h1>Hello World!</h1>
|
||||
</header>
|
||||
</main>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user