@monkeyplus/flow 6.0.83 → 6.0.84

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -34,13 +34,13 @@ export default defineFlowModule({
34
34
  if (!context.nitro.plugins.includes(fetchPluginPath)) {
35
35
  context.nitro.plugins.push(fetchPluginPath);
36
36
  }
37
- context.nitro.storage = {
38
- ...context.nitro.storage || {},
39
- content: {
40
- driver: "fs",
41
- base: contentDir
37
+ context.nitro.serverAssets = [
38
+ ...context.nitro.serverAssets || [],
39
+ {
40
+ baseName: "content",
41
+ dir: contentDir
42
42
  }
43
- };
43
+ ];
44
44
  context.nitro.runtimeConfig.flow = {
45
45
  ...typeof context.nitro.runtimeConfig.flow === "object" && context.nitro.runtimeConfig.flow ? context.nitro.runtimeConfig.flow : {},
46
46
  content: {
@@ -126,7 +126,7 @@ export async function readContentEntries() {
126
126
  }
127
127
  return entries2;
128
128
  };
129
- const storage = useStorage("content");
129
+ const storage = useStorage("assets:content");
130
130
  const keys = await storage.getKeys();
131
131
  const entries = [];
132
132
  if (keys.length === 0) {
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monkeyplus/flow",
3
- "version": "6.0.83",
3
+ "version": "6.0.84",
4
4
  "description": "@monkeyplus/flow package-first runtime with Vite, Nitro, Vue and a workspace playground.",
5
5
  "license": "MIT",
6
6
  "publishConfig": {