UNPKG

nuxt

Version:

[![Nuxt banner](./.github/assets/banner.png)](https://nuxt.com)

8 lines (7 loc) 252 B
import { defineEventHandler, getRequestHeader } from "h3"; export default defineEventHandler((event) => { if (getRequestHeader(event, "x-nuxt-no-ssr")) { event.context.nuxt = event.context.nuxt || {}; event.context.nuxt.noSSR = true; } });