Nuxt SSR API 日志记录器是一个小型模块,可帮助您查看 Nuxt 应用程序何时通过 SSR 发送任何 API 请求,包括使用 Nuxt 3 和 Nuxt 4 数据获取函数(如 useFetch、$fetch 和 fetch)进行的调用。

forceShowInProduction 模块选项。disable 模块选项。通过一个命令将模块安装到您的 Nuxt 应用中
npx nuxi module add nuxt-ssr-api-logger
就是这样!您现在可以在 Nuxt 应用程序中使用 Nuxt SSR API 日志记录器 ✨
# Install dependencies
npm install
# Generate type stubs
npm run dev:prepare
# Develop with the playground
npm run dev
# Build the playground
npm run dev:build
# Run ESLint
npm run lint
# Run Vitest
npm run test
npm run test:watch
# Release new version
npm run release