0.1.10-beta.4 • Published 3 months ago

@unpress/nuxt-server v0.1.10-beta.4

Weekly downloads
-
License
MIT
Repository
-
Last release
3 months ago

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

  1. Add @unpress/nuxt-server dependency 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
  1. Add @unpress/nuxt-server to the modules section of nuxt.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
0.1.10-beta.4

3 months ago

0.1.10-beta.2

4 months ago

0.1.10-beta.3

4 months ago

0.1.10-beta.1

4 months ago

0.1.9-beta.37

4 months ago