Skip to content

Commit

Permalink
fix: import defineNitroPlugin from #imports
Browse files Browse the repository at this point in the history

---------

Co-authored-by: Farnabaz <farnabaz@gmail.com>
  • Loading branch information
ejfox and farnabaz authored Sep 27, 2024
1 parent c769bf8 commit 34f6517
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/runtime/server/plugins/refresh-cache.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { defineNitroPlugin } from 'nitropack/runtime'
import type { WatchEvent } from 'unstorage';
// @ts-expect-error
import { useStorage } from '#imports'
import { useStorage, defineNitroPlugin } from '#imports'

export default defineNitroPlugin(async (nitro) => {
const { cleanCachedContents } = await import('../storage')
Expand Down

0 comments on commit 34f6517

Please # to comment.