Indi
Mereith's Blog mereith.com

在 Next.js 的 next.config.js 文件中开启 experimental.instrumentationHook 功能,然后在项目根目录创建 instrumentation.ts 文件,并在其中导出一个 register 函数。这个 register 函数会在 Next.js 服务启动时被执行。 官方文档 // next.config.js const nextConfig = …

讨论

还没有评论,来说第一句吧。

Mereith's Blog 的其他文章