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