We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42ef2c7 commit cf715ebCopy full SHA for cf715eb
packages/nuxt/src/runtime/plugins/storage.server.ts
@@ -55,6 +55,14 @@ export default defineNitroPlugin(async _nitroApp => {
55
56
debug.log('[storage] Starting to instrument storage drivers...');
57
58
+ // Adds cache mount to handle Nitro's cache calls
59
+ // Nitro uses the mount to cache functions and event handlers
60
+ // https://nitro.build/guide/cache
61
+ userMounts.add('cache:');
62
+ // In production, unless the user configured a specific cache driver, Nitro will use the memory driver at root mount.
63
+ // Either way, we need to instrument the root mount as well.
64
+ userMounts.add('');
65
+
66
// Get all mounted storage drivers
67
const mounts = storage.getMounts();
68
for (const mount of mounts) {
0 commit comments