unjs / nitro

Next Generation Server Toolkit. Create web servers with everything you need and deploy them wherever you prefer.
https://nitro.unjs.io
MIT License
5.89k stars 496 forks source link

RouteRoules SWR not working on Netlify #2617

Open francisneedham opened 2 months ago

francisneedham commented 2 months ago

Environment

production

Reproduction

https://nitrocachetest.netlify.app/test_swr_time

In this app i have one route setup like this

export default defineNitroConfig({ srcDir: "server", routeRules: { '/test_swr_time': { swr: 10 }, '/test_swr_true': { swr: true } } });

Expected result is that every 10 seconds i should see the cache regenerate but is not, is cached forever

the code of the app is here https://bitbucket.org/displaydevteam/nitro_test/src/main/

Describe the bug

with a swr 10 setting i exect the page to change every 10 second by invalidating the cache, but is not happening.

Additional context

This is related to this https://github.com/nuxt/nuxt/issues/25418#issuecomment-2228954510

Logs

No response

timbkr commented 2 months ago

bitbucket code link not working for me

francisneedham commented 2 months ago

Hi, sorry here is the right link https://bitbucket.org/francis_needham/nitro_test/

cfab commented 1 week ago

same here !

francisneedham commented 1 week ago

any updates ?