blob: 1684dd24ef1bc6c1e7a6416ad7f137ec2c2f8044 [file] [log] [blame]
import Layout from "../../../src/Layout";
import RepoDashboard from "../../../src/RepoDashboard";
import { GetStaticPaths, GetStaticProps } from "next";
interface PageProps {
owner: string;
repo: string;
}
export default function Page({ owner, repo }: PageProps) {
return (
<Layout>
<RepoDashboard owner={owner} repo={repo} />
</Layout>
);
}
export const getStaticProps: GetStaticProps = async (context) => {
const { owner, repo } = context.params as any;
return {
props: { owner, repo },
};
};
export const getStaticPaths: GetStaticPaths = async (context) => {
return {
paths: [],
fallback: "blocking",
};
};