Next.js ISR(增量静态再生),如何在间隔/ISR时间开始之前手动或动态重建或更新特定页面? [英] Next.js ISR ( Incremental Static Regeneration ), how to rebuild or update a specific page manually or dynamically before the interval/ISR time start?

查看:71
本文介绍了Next.js ISR(增量静态再生),如何在间隔/ISR时间开始之前手动或动态重建或更新特定页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 NextJS 生产模式下 -在增量静态再生中,我将自动重新验证间隔设置为 604800 秒(7 天).与此同时,我可能需要在间隔时间开始之前更新特定页面.

In NextJS Production mode - In Incremental Static Regeneration, I have placed an auto revalidate interval to 604800 seconds(7 days). In the meantime I may need to update a specific page before the interval time start.

如何在间隔/ISR 时间开始之前重建/更新特定页面而不重建整个站点?

How can I rebuild/update a specific page without rebuilding the full site before the interval/ISR time start?

推荐答案

目前next.js没有手动重建静态页面的原生功能.

currently next.js doesn't have a native feature for rebuilding a static page manually.

这里有一个解决方法可以参考.

next.js 团队正在积极研究这个话题,你可以参考这个 RFC

and next.js team is actively working on this topic, you can refer to this RFC

这篇关于Next.js ISR(增量静态再生),如何在间隔/ISR时间开始之前手动或动态重建或更新特定页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆