Skip to content

Commit 4cdb1dc

Browse files
committed
fix(bridge): mark defineNuxtMiddleware as unsupprted
closes #1317
1 parent f53f1a5 commit 4cdb1dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/runtime/capi.legacy.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const warnOnce = (id, message) => {
7777
warnOnce('import', `\`@nuxtjs/composition-api\` is deprecated. ${checkDocsMsg}`)
7878

7979
// Stub functions that provided type support
80-
export const defineNuxtMiddleware = mw => mw
80+
export const defineNuxtMiddleware = unsupported('You are using `defineNuxtMiddleware`, which is not supported. You can remove wrapper function to keep using Nuxt 2 middleware.')
8181
export const defineNuxtPlugin = unsupported('You are using `defineNuxtPlugin`, which can be replaced with `defineNuxtPlugin` (import from `#app`).')
8282

8383
// Internal exports

0 commit comments

Comments
 (0)