[READ-ONLY] Mirror of https://github.com/danielroe/nitro-vite-repros.
378 B
11 lines
1import { useRuntimeConfig } from 'nitro/runtime-config'
2
3export default {
4 async fetch (_request: Request): Promise<Response> {
5 const config = useRuntimeConfig()
6 return new Response(
7 `<!doctype html><meta charset="utf-8"><pre>runtimeConfig=${JSON.stringify(config, null, 2)}</pre>`,
8 { headers: { 'content-type': 'text/html; charset=utf-8' } },
9 )
10 },
11}