export const getServerSideProps: GetServerSideProps = async (params) => {
const audit= await getAudit(`/granskninger/${params.query.slug}`); // 34:9 Error: Unsafe assignment of an `any` value. + 34:48 Error: Invalid type "string | string[] | undefined" of template literal expression.
return {
props: { audit }
};
};
export const getServerSideProps: GetServerSideProps = async (params) => {
const audit= await getAudit(`/granskninger/${params.query.slug}`); // 34:9 Error: Unsafe assignment of an `any` value. + 34:48 Error: Invalid type "string | string[] | undefined" of template literal expression.
return {
props: { audit }
};
};