@monkeyplus/flow 6.0.86 → 6.0.88

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.
@@ -38,7 +38,7 @@ export default defineFlowModule({
38
38
  ...context.nitro.storage || {},
39
39
  content: {
40
40
  driver: "fs",
41
- base: contentDir
41
+ base: `./${options.dir}`
42
42
  }
43
43
  };
44
44
  context.nitro.runtimeConfig.flow = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monkeyplus/flow",
3
- "version": "6.0.86",
3
+ "version": "6.0.88",
4
4
  "description": "@monkeyplus/flow package-first runtime with Vite, Nitro, Vue and a workspace playground.",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -36,11 +36,6 @@ export function createFlowNitroConfig(options = {}) {
36
36
  (nitro) => {
37
37
  nitro.hooks.hook("compiled", async (nitro2) => {
38
38
  const preset = nitro2?.options?.preset || flowConfig.nitro?.preset || process.env.FLOW_BUILD_PRESET;
39
- const nitroViteServicesSrc = resolve(nitro2.options.rootDir, "node_modules/.nitro/vite/services");
40
- const nitroViteServicesDest = resolve(nitro2.options.output.serverDir, ".nitro/vite/services");
41
- if (existsSync(nitroViteServicesSrc)) {
42
- await fsp.cp(nitroViteServicesSrc, nitroViteServicesDest, { recursive: true });
43
- }
44
39
  if (preset === "netlify" || process.env.NETLIFY) {
45
40
  const customPath = flowConfig.netlify?.path;
46
41
  if (customPath) {
@@ -75,32 +75,6 @@ async function fetchContent(route, queryParams) {
75
75
  }
76
76
  const localFetch = getGlobalFetch();
77
77
  const relativeTarget = withQuery(joinUrl(apiBase, route), query);
78
- if (typeof window === "undefined") {
79
- try {
80
- if (!localFetch) {
81
- let queryModule;
82
- try {
83
- queryModule = await import("../../modules/content/query.mjs");
84
- } catch (tsErr) {
85
- console.error("[queryContent] Error loading .ts:", tsErr);
86
- queryModule = await import("../../modules/content/query.js");
87
- }
88
- const { findContentEntries, buildContentTree, findContentTree, readContentEntries, processContentQuery } = queryModule;
89
- let entries = await readContentEntries();
90
- const isTreeRequest = route.endsWith("/tree") || query.tree === true || query.tree === "true" || query.tree === "1";
91
- if (isTreeRequest) {
92
- const tree = buildContentTree(entries);
93
- return findContentTree(tree, query.path);
94
- }
95
- if (query.path) {
96
- entries = findContentEntries(entries, query.path);
97
- }
98
- return processContentQuery(entries, query, await readContentEntries());
99
- }
100
- } catch (e) {
101
- console.error("[queryContent] Bypass failed:", e);
102
- }
103
- }
104
78
  const fetchFn = typeof window === "undefined" ? localFetch || fetch : fetch;
105
79
  let targetToFetch = typeof window === "undefined" && localFetch ? relativeTarget : relativeTarget;
106
80
  if (typeof window === "undefined" && !localFetch && targetToFetch.startsWith("/")) {