fix(module): work with route rules cache: true#3617
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Deploying content with
|
| Latest commit: |
f705a59
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://eb6712c1.content-f0q.pages.dev |
| Branch Preview URL: | https://fix-nitro-cache.content-f0q.pages.dev |
commit: |
Member
Author
|
@maximepvrt This PR should resolve the issue, I would appreciate if you can verify using pr-release? 🙏 |
Contributor
|
@farnabaz it's perfect for me ;-) Thanks ! |
Contributor
|
@farnabaz but in this branch/pk.pr.new I have error with yml parcing if I active nitro cache
title: Être bénévole
name: Devenir bénévole
description: Vous souhaitez vivre une expérience utile et agréable par le bénévolat ? bravo ! Peut-être avez vous une idée très précise de ce que vous souhaitez faire. Peut-être moins. Nous sommes là pour vous aider à vous y retrouver !
items:
- title: S'engager pour une cause
description: Découvrez les différents domaines d’activités des associations et choisissez
de faire du bénévolat dans les causes qui vous tiennent le plus à coeur.
to: "/devenir-benevole/domaine"
image: "/devenir-benevole/domaine.svg"
- title: Agir localement
description: Les associations recherchent des bénévoles partout en France. Découvrez
les missions de bénévolat proposées par les associations locales !
to: "/devenir-benevole/france"
image: "/devenir-benevole/france.svg"
- title: Agir à tout âge
description: Que l’on soit étudiant, jeune actif, demandeur d’emploi, femme, homme,
retraité, diplômé, décrocheur, ou dans une toute autre situation, il y a toujours
une bonne raison de faire du bénévolat.
to: "/devenir-benevole/profil"
image: "/devenir-benevole/profil.svg"
- title: Partager ses compétences
description: Découvrez les différentes activités dans lesquelles vous pouvez faire
du bénévolat et partagez votre expérience et votre énergie.
to: "/devenir-benevole/activite"
image: "/devenir-benevole/domaine.svg"
- title: Rejoindre une association nationale
description: Il existe forcément une antenne locale d"une organisation nationale
près de chez vous.
to: "/reseau"
external: true
image: "/devenir-benevole/reseau.svg" |
Member
Author
|
@maximepvrt This is even stranger that original issue. Do you mind monkey patch and add a log here to show the error trace and find the line? Line 375 in 9ddbb10 Also may I have access to repo? is it public? |
Contributor
|
@farnabaz I just sent you a DM on Discord regarding this. |
6 tasks
cache: true
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
… config hook
🔗 Linked issue
resolves #3613
❓ Type of change
📚 Description
This was an attempt to solve #3613. But it seems that it works only if we move route to
/api/**.Nitro cache + server handler on
modules:donehook does not work if it is not prefixed with/api/cc @pi0 @atinux📝 Checklist