Skip to content

The Nuxt SSR API logger is a small module that helps you see when your Nuxt application sends any API request via SSR

Notifications You must be signed in to change notification settings

buglavecz/nuxt-ssr-api-logger

Repository files navigation

Nuxt SSR API logger

npm version npm downloads License Nuxt

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

About

The Nuxt SSR API logger is a small module that helps you see when your Nuxt application sends any API request via SSR

Topics

Resources

Stars

Watchers

Forks