@monkeyplus/flow 6.0.38 → 6.0.39

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monkeyplus/flow",
3
- "version": "6.0.38",
3
+ "version": "6.0.39",
4
4
  "description": "@monkeyplus/flow package-first runtime with Vite, Nitro, Vue and a workspace playground.",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -27,6 +27,7 @@ export function createFlowNitroConfig(options = {}) {
27
27
  const moduleRuntimeConfig = { ...flowModules.nitro.runtimeConfig };
28
28
  delete moduleRuntimeConfig.flow;
29
29
  return defineNitroConfig({
30
+ ...flowNitroConfig,
30
31
  compatibilityDate: "2026-04-02",
31
32
  builder: "vite",
32
33
  renderer: {
@@ -72,7 +73,16 @@ export function createFlowNitroConfig(options = {}) {
72
73
  ...flowModules.nitro.routeRules
73
74
  },
74
75
  routes: flowModules.nitro.routes,
75
- imports: flowModules.nitro.imports,
76
+ imports: {
77
+ ...flowModules.nitro.imports,
78
+ imports: [
79
+ ...flowModules.nitro.imports?.imports || [],
80
+ { name: "definePage", from: "@monkeyplus/flow" },
81
+ { name: "queryContent", from: "@monkeyplus/flow" },
82
+ { name: "useSchemaOrg", from: "@monkeyplus/flow" },
83
+ { name: "defineLayoutContext", from: "@monkeyplus/flow" }
84
+ ]
85
+ },
76
86
  runtimeConfig: {
77
87
  app: {
78
88
  name: "Flow Next",
@@ -1,5 +1,2 @@
1
1
  export default function(nitroApp) {
2
- if (!globalThis.$fetch && nitroApp) {
3
- globalThis.$fetch = nitroApp.fetch;
4
- }
5
2
  }
@@ -14,9 +14,6 @@ export function createFlowBuildHooks(options) {
14
14
  const hooks = {
15
15
  ...options.existingHooks || {}
16
16
  };
17
- if (options.flowConfig.build.preset !== "ssg") {
18
- return hooks;
19
- }
20
17
  const userPrerenderRoutes = typeof hooks["prerender:routes"] === "function" ? hooks["prerender:routes"] : void 0;
21
18
  const userPrerenderGenerate = typeof hooks["prerender:generate"] === "function" ? hooks["prerender:generate"] : void 0;
22
19
  let prerenderRoutesPromise;