Installation
Automatic Install
To install and register the latest version of Frogger run the following command:
$ pnpm dlx nuxi@latest module add nuxt-frogger
$ npx nuxi@latest module add nuxt-frogger
$ yarn dlx nuxi@latest module add nuxt-frogger
$ bunx nuxi@latest module add nuxt-frogger
A default configuration of Frogger is now installed in your Nuxt project. Take a look at the Getting Started guide to learn how to make your first log.
Want to make some changes to Frogger's configuration? Check out the Configuration guide.
Manual Install
Does command above not work? To install Frogger and register it manually:
$ pnpm add nuxt-frogger
$ npm install nuxt-frogger
$ yarn add nuxt-frogger
$ bun add nuxt-frogger
Register the Module
Add 'nuxt-frogger'
as a module in your nuxt.config.ts
file.
export default defineNuxtConfig({
modules: [
'nuxt-frogger'
]
})
Recommended
While everything should work out of the box, I recommend at least setting up a name and version for your application that will be included in the logs. Set the app
property in the frogger
configuration object in your nuxt.config.ts
file:
export default defineNuxtConfig({
modules: [
'nuxt-frogger'
],
frogger: {
app: {
name: 'My App',
version: '1.0.0'
}
}
})
For more configuration options, check out the Configuration guide.