We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29912e7 commit 59f8fa7Copy full SHA for 59f8fa7
1 file changed
codegen/lib/connect.ts
@@ -40,11 +40,10 @@ export const connect = (
40
file.layout = 'route.hbs'
41
setRouteLayoutContext(file, namespace, blueprint)
42
43
- routeIndexes[namespace.path] ??= new Set()
44
- routeIndexes[namespace.path]?.add(`${kebabCase(namespace.name)}.js`)
45
-
46
const parentPath = namespace.parentPath ?? ''
+
47
routeIndexes[parentPath] ??= new Set()
+ routeIndexes[parentPath]?.add(`${kebabCase(namespace.name)}.js`)
48
routeIndexes[parentPath]?.add(`${kebabCase(namespace.name)}/index.js`)
49
}
50
0 commit comments