Files
explore/lib/next/getServerSidePropsDummy.ts
T
dcc0fb1d32 no base path (#294)
* env for base path

* delete base path

* redo network type

* debug review workflow

* update values

* update values

Co-authored-by: Yuliya Sharafitdinova <[email protected]>
2022-11-02 11:14:41 +03:00

11 lines
272 B
TypeScript

import type { GetServerSideProps } from 'next';
export const getServerSideProps: GetServerSideProps = async({ res }) => {
res.setHeader(
'Cache-Control',
`public, s-maxage=${ 60 * 60 }, stale-while-revalidate=${ 2 * 60 * 60 }`,
);
return { props: {} };
};