Skip to content

feat: use CachedEventHandler options in nitro routes config#443

Closed
LouisHaftmann wants to merge 5 commits intonitrojs:mainfrom
LouisHaftmann:feat/nitro-route-cache-options
Closed

feat: use CachedEventHandler options in nitro routes config#443
LouisHaftmann wants to merge 5 commits intonitrojs:mainfrom
LouisHaftmann:feat/nitro-route-cache-options

Conversation

@LouisHaftmann
Copy link
Copy Markdown
Contributor

🔗 Linked issue

#442

❓ Type of change

  • 📖 Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

This applies all nitro route options to the CachedEventHandler instead of just checking and enabling swr

Resolves #442

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

Comment thread src/types/nitro.ts Outdated
@pi0
Copy link
Copy Markdown
Member

pi0 commented Oct 15, 2022

Thanks for the nice PR @LouisHaftmann. Both docs and shortcuts supported are updated in the main supporting cache options as well as swr: number shortcut. Because of merge conflict, i will add docs from main.

@pi0 pi0 closed this Oct 15, 2022
@pi0
Copy link
Copy Markdown
Member

pi0 commented Oct 15, 2022

Added via 221c747

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.

3 participants