@unpress/nuxt-server
Unpress Nuxt Server
The missing Nuxt content v2 feature: write the local file in dev mode from the frontend. This module is only used in dev mode. You can deactivate it if you want.
Features
- 🧩 Create a Nuxt server handler
- 💾 Use unstorage http driver in frontend
- 👐 Pair with Nuxt content storage (nitro)
Quick Setup
- Add
@unpress/nuxt-serverdependency to your project
# Using pnpm
pnpm add -D @unpress/nuxt-server
# Using yarn
yarn add --dev @unpress/nuxt-server
# Using npm
npm install --save-dev @unpress/nuxt-server
- Add
@unpress/nuxt-serverto themodulessection ofnuxt.config.ts
export default defineNuxtConfig({
modules: [
'@unpress/nuxt-server'
]
})
That's it! You can now use @unpress/nuxt-server in your Nuxt app ✨
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
Related Packages
Version History
Pre-releases (24)
| Version | Released | Vue | License |
|---|---|---|---|
| 0.1.14-beta.2 | ^3.0 | MIT | |
| 0.1.14-beta.1 | ^3.0 | MIT | |
| 0.1.13-beta.8 | ^3.0 | MIT | |
| 0.1.13-beta.7 | ^3.0 | MIT | |
| 0.1.13-beta.6 | ^3.0 | MIT | |
| 0.1.13-beta.5 | ^3.0 | MIT | |
| 0.1.13-beta.4 | ^3.0 | MIT | |
| 0.1.13-beta.3 | ^3.0 | MIT | |
| 0.1.13-beta.2 | ^3.0 | MIT | |
| 0.1.13-beta.1 | ^3.0 | MIT | |
| 0.1.12-beta.2 | ^3.0 | MIT | |
| 0.1.12-beta.1 | ^3.0 | MIT | |
| 0.1.11-beta.8 | ^3.0 | MIT | |
| 0.1.11-beta.7 | ^3.0 | MIT | |
| 0.1.11-beta.6 | ^3.0 | MIT | |
| 0.1.11-beta.5 | ^3.0 | MIT | |
| 0.1.11-beta.4 | ^3.0 | MIT | |
| 0.1.11-beta.3 | ^3.0 | MIT | |
| 0.1.11-beta.2 | ^3.0 | MIT | |
| 0.1.10-beta.4 | ^3.0 | MIT | |
| 0.1.10-beta.3 | ^3.0 | MIT | |
| 0.1.10-beta.2 | ^3.0 | MIT | |
| 0.1.10-beta.1 | ^3.0 | MIT | |
| 0.1.9-beta.37 | ^3.0 | MIT |