mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-21 16:09:52 +00:00
fix: adding meta to middleware key
This commit is contained in:
parent
203c6b14ff
commit
c96bf6048e
@ -255,6 +255,10 @@ export async function getRouteMeta (contents: string, absolutePath: string, extr
|
||||
if (!property) { continue }
|
||||
|
||||
const propertyValue = withLocations(property.value)
|
||||
|
||||
if (key === 'middleware') {
|
||||
dynamicProperties.add('meta')
|
||||
}
|
||||
|
||||
if (propertyValue.type === 'ObjectExpression') {
|
||||
const valueString = js.code.slice(propertyValue.start, propertyValue.end)
|
||||
|
Loading…
Reference in New Issue
Block a user