diff --git a/pages/bots/[id].tsx b/pages/bots/[id].tsx index 26f7551..b333eb7 100644 --- a/pages/bots/[id].tsx +++ b/pages/bots/[id].tsx @@ -1,5 +1,7 @@ -import { GetServerSideProps, NextPage } from 'next' +import { NextPage, NextPageContext } from 'next' +import { ParsedUrlQuery } from 'querystring' import Container from '../../components/Container' +import Fetch from '../../utils/Fetch' const Bots:NextPage = () => { return @@ -7,7 +9,17 @@ const Bots:NextPage = () => { } -export const getServerSideProps: GetServerSideProps = async (context) => { +export const getServerSideProps = async (ctx: Context) => { + console.log(ctx.query) return { props: { data: {} } } } -export default Bots \ No newline at end of file + +export default Bots + +interface Context extends NextPageContext { + query: Query +} + +interface Query extends ParsedUrlQuery { + id: string +} \ No newline at end of file