mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
docs: use update import for defineLazyEventHandler
(#8767)
This commit is contained in:
parent
12767fffd3
commit
07dc5fd01e
@ -1,6 +1,6 @@
|
||||
import { defineLazyHandler } from 'h3'
|
||||
import { defineLazyEventHandler } from 'h3'
|
||||
|
||||
export default defineLazyHandler(async () => {
|
||||
export default defineLazyEventHandler(async () => {
|
||||
const { exports: { sum } } = await loadWasmInstance(
|
||||
// @ts-ignore
|
||||
() => import('~/server/wasm/sum.wasm')
|
||||
|
Loading…
Reference in New Issue
Block a user