UNPKG

nuxt

Version:

Nuxt is a free and open-source framework with an intuitive and extendable way to create type-safe, performant and production-grade full-stack web applications and websites with Vue.js.

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