chore: add cache to static pages in app router (#18278)
* add cache * fix * refactor
This commit is contained in:
1 parent
6f1556a2fd
commit
e04faffcbb
5 files changed
+25
-18
No files matched your search
@@ -13,7 +13,7 @@ export const generateMetadata = async () => {
|
||||
);
|
||||
};
|
||||
|
||||
const getData = withAppDirSsg(getStaticProps);
|
||||
const getData = withAppDirSsg(getStaticProps, "future/auth/error");
|
||||
|
||||
export default WithLayout({ getData, Page, getLayout: null })<"P">;
|
||||
export const dynamic = "force-static";
|
||||
Reference in new issue
Block a user