mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-22 12:03:25 -04:00
(nuxt) remount data storage as it is resolved to the build directory
This commit is contained in:
parent
a5d318de66
commit
317f2bc7e1
8
server/plugins/storage.ts
Normal file
8
server/plugins/storage.ts
Normal file
@ -0,0 +1,8 @@
|
||||
import { defineNitroPlugin, useStorage } from 'nitropack/runtime';
|
||||
import fsLiteDriver from 'unstorage/drivers/fs-lite';
|
||||
|
||||
export default defineNitroPlugin(async () => {
|
||||
// should be resolved when Nitro releases a nev version https://github.com/nitrojs/nitro/issues/3017
|
||||
await useStorage().unmount('data');
|
||||
useStorage().mount('data', fsLiteDriver({ base: '.data/kv' }));
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user