Provides Azure Static Web Apps features to your Nuxt apps.
- 🔑 Authentication & Authorization
- 📐 Provide type for
nitro.azure.config
- 🗄️ Data API support
- Add
nuxt-swa
dependency to your project
# Using pnpm
pnpm add -D nuxt-swa
# Using yarn
yarn add --dev nuxt-swa
# Using npm
npm install --save-dev nuxt-swa
- Add
nuxt-swa
to themodules
section ofnuxt.config.ts
export default defineNuxtConfig({
modules: [
'nuxt-swa'
]
})
That's it! You can now use Nuxt SWA Module in your Nuxt app ✨
# Install dependencies
pnpm install
# Develop with the docs
pnpm dev
# Build module & docs
# Note: You need to purchase a Nuxt UI Pro license key and set it in the `NUXT_UI_PRO_LICENSE` environment variable.
pnpm build
# Run ESLint & Prettier
pnpm lint
# Run ESLint & Prettier (auto fix)
pnpm format
# Run Vitest
pnpm test