Skip to content

Commit

Permalink
fix: eventHandler error
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Dec 13, 2022
1 parent 2b5d9dc commit dfc4b1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/runtime/dev-sitemap.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export default eventHandler(async () => {
import { defineEventHandler } from '#imports'
export default defineEventHandler(async () => {
return 'Sitemap is not available in development mode.<br><br>If you\'d like to view it run <code>nuxi generate</code> or <code>nuxi build</code>.'
})

0 comments on commit dfc4b1c

Please sign in to comment.