Nuxt/test/fixtures/basic/plugins/prerender.server.ts

5 lines
126 B
TypeScript

export default defineNuxtPlugin((nuxtApp) => {
// Pretend to be prerendered
nuxtApp.payload.prerenderedAt = Date.now()
})