mirror of
https://github.com/nuxt/nuxt.git
synced 2025-03-25 02:26:38 +00:00
15 lines
368 B
TypeScript
15 lines
368 B
TypeScript
// @ts-expect-error untyped
|
|
import '#nitro-internal-pollyfills'
|
|
import type { NitroApp } from 'nitropack'
|
|
import { useNitroApp } from '#internal/nitro'
|
|
|
|
const nitroApp = useNitroApp()
|
|
|
|
async function renderIndex () {
|
|
const text = await (nitroApp as NitroApp).localFetch('/', {}).then(r => r.text())
|
|
// eslint-disable-next-line
|
|
console.log(text)
|
|
}
|
|
|
|
renderIndex()
|