@@ -59,15 +49,8 @@ export function Dash({ initialData }: DashProps) {
/>
Dash
- {JSON.stringify(user, null, 2)}
-
- {tabs.map((tab, i) => (
-
- ))}
-
- {body[activeTab]}
+
+
This is the collapsible content. It can be any element or React component you like.
diff --git a/src/pages/404.tsx b/src/pages/404.tsx
new file mode 100644
index 0000000..27d5a72
--- /dev/null
+++ b/src/pages/404.tsx
@@ -0,0 +1,12 @@
+import { fetchData } from 'services/fetchData'
+
+import type { GetStaticProps } from 'next'
+
+export default function NotFoundPage() {
+ return Not found
+}
+
+export const getStaticProps: GetStaticProps = async () => {
+ const initialData = await fetchData()
+ return { props: { initialData }, revalidate: 1 }
+}
diff --git a/src/pages/500.tsx b/src/pages/500.tsx
new file mode 100644
index 0000000..acb3645
--- /dev/null
+++ b/src/pages/500.tsx
@@ -0,0 +1,12 @@
+import { fetchData } from 'services/fetchData'
+
+import type { GetStaticProps } from 'next'
+
+export default function InternalErrorPage() {
+ return Internal server error
+}
+
+export const getStaticProps: GetStaticProps = async () => {
+ const initialData = await fetchData()
+ return { props: { initialData }, revalidate: 1 }
+}