Thanks to visit codestin.com Credit goes to github.com
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 cd3cf0b commit 47cdd7dCopy full SHA for 47cdd7d
packages/nuxt/src/core/runtime/nitro/cache-driver.ts
@@ -2,8 +2,7 @@ import { defineDriver } from 'unstorage'
2
import fsDriver from 'unstorage/drivers/fs-lite'
3
import lruCache from 'unstorage/drivers/lru-cache'
4
5
-// Ensure we don't try to write/read from directory index for `/` paths
6
-const normalizeFsKey = (item: string) => item.indexOf(':') === -1 ? `${item}:index` : item
+const normalizeFsKey = (item: string) => item.replaceAll(':', '_')
7
8
export default defineDriver((opts: { base: string }) => {
9
const fs = fsDriver({ base: opts.base })
0 commit comments