Nuxt TypeScript Nuxt TypeScript
    • Introduction
  • ガイド

    • イントロダクション
    • セットアップ
    • Runtime(オプション)
    • Lint
  • Cookbook

    • コンポーネント
    • ミドルウェア
    • プラグイン
    • ストア
    • 設定(ランタイム)
    • モジュール(ランタイム)
    • Server Middlewares(ランタイム)
  • 例

    • Options API
    • Class API
    • Composition API
  • More

    • English
    • Español
    • Português
    • 繁體中文
    • 简体中文

Server Middlewares(ランタイム)

import { ServerMiddleware } from '@nuxt/types'

const myServerMiddleware: ServerMiddleware = function (req, res, next) {
  // req, res, next を使用
}

export default myServerMiddleware
モジュール(ランタイム) Options API
  • English
  • Español
  • Português
  • 繁體中文
  • 简体中文