Skip to content

Conversation

@psnoonan
Copy link

Description

Fixes #546

The v7 migration guide states that index was removed and users should use robots instead. However, the generated type declarations still use index?: boolean.

This PR updates the types to match the runtime behavior.

Changes

  • Updated NitroRouteRules.indexNitroRouteRules.robots
  • Updated NitroRouteConfig.indexNitroRouteConfig.robots

Both in nitropack and nitropack/types module declarations.

@psnoonan psnoonan force-pushed the fix/route-rules-robots-type branch from 95eac7a to 40a33c4 Compare January 29, 2026 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Generated types declare 'index' but runtime expects 'robots' in route rules

1 participant