Installation

Get started with the NOBEARS Nuxt Mapbox Module.

Quick Start

Install the Nuxt Mapbox module to your project

You can install the module with your favorite package manager:

pnpm add @nobears-front-end/nuxt-mapbox

Add the Nuxt Mapbox module

nuxt.config.ts
export default defineNuxtConfig({
  modules: ['@nobears-front-end/nuxt-mapbox'],
  mapbox: {
    accessToken: process.env.NUXT_MAPBOX_ACCESS_TOKEN,
    // ... other options
  },
})

Don't forget to add the NUXT_MAPBOX_ACCESS_TOKEN environment variable to your project.

NUXT_MAPBOX_ACCESS_TOKEN=