mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
16 lines
265 B
JavaScript
16 lines
265 B
JavaScript
export const config = {
|
|
runtime: 'edge',
|
|
}
|
|
|
|
export default function () {
|
|
return new Response(
|
|
new ReadableStream({
|
|
start(ctr) {
|
|
ctr.enqueue(new TextEncoder().encode('hello'))
|
|
ctr.enqueue(true)
|
|
ctr.close()
|
|
},
|
|
})
|
|
)
|
|
}
|