nuxt-ssr-api-logger

nuxt-ssr-api-logger
A small module that helps you see when your Nuxt application sends any API request via SSR.
Nuxt SSR API logger
The Nuxt SSR API logger is a small module that helps you see when your Nuxt application sends any API request via SSR, including calls made with Nuxt 3 data fetching functions like useFetch
, $fetch
and fetch
.
Features
- 👁️ By default, log information is only shown in the terminal during development mode.
- 🦾 Use
forceShowInProduction
module option, if you want to show SSR calls in production environment. - 🚫 Use
disable
module option, if you want to disable logging.
Quick Setup
Install the module to your Nuxt application with one command:
npx nuxi module add nuxt-ssr-api-logger
That's it! You can now use Nuxt SSR API logger in your Nuxt app ✨
Contribution
Local development
# 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