diff --git a/pages/query/[path].mdx b/pages/query/[path].mdx
deleted file mode 100644
index b75807c..0000000
--- a/pages/query/[path].mdx
+++ /dev/null
@@ -1,9 +0,0 @@
-import { useRouter } from "next/router";
-export const Query = () => {
- const { query } = useRouter();
- return
{JSON.stringify(query, null, " ")}
;
-};
-
-# Query
-
-
diff --git a/pages/query/[path].tsx b/pages/query/[path].tsx
new file mode 100644
index 0000000..2ed6f8b
--- /dev/null
+++ b/pages/query/[path].tsx
@@ -0,0 +1,14 @@
+import { useRouter } from "next/router";
+
+export function getStaticPaths() {
+ return { paths: [{ params: { path: "test" } }], fallback: true };
+}
+
+export function getStaticProps({ params }: { params: unknown }) {
+ return { props: params };
+}
+
+export default function({ path }: { path: string }) {
+ const { query } = useRouter();
+ return {JSON.stringify({ path, ...query }, null, " ")}
;
+}