netlify-plugin-debug-cache icon indicating copy to clipboard operation
netlify-plugin-debug-cache copied to clipboard

This doesn't seem to work?

Open jasikpark opened this issue 3 years ago • 7 comments

My build download doesn't contain the cache-output.json that this plugin is meant to add..

Is there anything obvious I'm doing wrong? https://github.com/jasikpark/jasik-xyz

jasikpark avatar Jul 04 '21 20:07 jasikpark

I had the same experience just now.

NoahAndrews avatar Sep 21 '21 22:09 NoahAndrews

Does following the updated instructions from PR #10 work for you? I don't have a top-level NPM package to try with.

NoahAndrews avatar Sep 21 '21 22:09 NoahAndrews

I still have this issue when enabling the plugin through the UI.

NoahAndrews avatar Sep 21 '21 22:09 NoahAndrews

Interesting, the plugin is in fact running: image

NoahAndrews avatar Sep 21 '21 22:09 NoahAndrews

+1 - no cache output generated

filipwiniarski avatar Dec 08 '21 12:12 filipwiniarski

I believe the root cause of this not working is that the plugin creates this cache-output.json file after the deploy so the file isn't included in the deploy when you download it.

The fix is to run the plugin after the build and function bundling but before the deploy itself.

I have a local branch ready to PR to fix this and I am working on getting access to this repo to do so.

overlordofmu avatar Jan 12 '22 06:01 overlordofmu

Our build is too big to download it over and over again only to get to this file. We would need a separate place to download only this file. Or define a directory so we can move it to our dist folder and make it public available.

fabianwohlfart avatar Jan 19 '22 10:01 fabianwohlfart