diff --git a/src/pages/product/[id].tsx b/src/pages/product/[id].tsx new file mode 100644 index 0000000..2e87e57 --- /dev/null +++ b/src/pages/product/[id].tsx @@ -0,0 +1,9 @@ +import { useRouter } from "next/router" + +export default function Product() { + const { query } = useRouter() + + return ( +

Product {JSON.stringify(query)}

+ ) +} \ No newline at end of file diff --git a/src/pages/success.tsx b/src/pages/success.tsx new file mode 100644 index 0000000..26d3a5f --- /dev/null +++ b/src/pages/success.tsx @@ -0,0 +1,5 @@ +export default function Success() { + return ( +

success

+ ) +} \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index 670224f..112f50b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,7 +8,7 @@ "noEmit": true, "esModuleInterop": true, "module": "esnext", - "moduleResolution": "bundler", + "moduleResolution": "node", "resolveJsonModule": true, "isolatedModules": true, "jsx": "preserve",