@farm.js/core 0.1.0-beta.76 → 0.1.0-beta.77

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.
Files changed (41) hide show
  1. package/dist/{chunk-NN6KJF7I.mjs → chunk-BF47GPQF.mjs} +9 -3
  2. package/dist/chunk-BF47GPQF.mjs.map +1 -0
  3. package/dist/{chunk-OL7GH5ZC.mjs → chunk-KDKXMAIQ.mjs} +2 -2
  4. package/dist/{chunk-MV5WATSI.mjs → chunk-PZLBMD63.mjs} +2 -2
  5. package/dist/{chunk-MV5WATSI.mjs.map → chunk-PZLBMD63.mjs.map} +1 -1
  6. package/dist/{chunk-ENS436YL.mjs → chunk-UBDJMY7B.mjs} +2 -2
  7. package/dist/client/lifecycle.mjs +2 -2
  8. package/dist/client-plugins.cjs +1 -1
  9. package/dist/client-plugins.cjs.map +1 -1
  10. package/dist/client-plugins.mjs +2 -2
  11. package/dist/client.cjs +1 -1
  12. package/dist/client.cjs.map +1 -1
  13. package/dist/client.mjs +2 -2
  14. package/dist/index.cjs +8 -2
  15. package/dist/index.cjs.map +1 -1
  16. package/dist/index.mjs +4 -4
  17. package/dist/internal/build-runtime.cjs +8 -2
  18. package/dist/internal/build-runtime.cjs.map +1 -1
  19. package/dist/internal/build-runtime.mjs +3 -3
  20. package/dist/internal/client-runtime.cjs +1 -1
  21. package/dist/internal/client-runtime.cjs.map +1 -1
  22. package/dist/internal/client-runtime.mjs +2 -2
  23. package/dist/internal/product-telemetry-runtime.cjs +1 -1
  24. package/dist/internal/product-telemetry-runtime.cjs.map +1 -1
  25. package/dist/internal/product-telemetry-runtime.mjs +1 -1
  26. package/dist/plugin.cjs +8 -2
  27. package/dist/plugin.cjs.map +1 -1
  28. package/dist/plugin.mjs +2 -2
  29. package/dist/server.cjs +8 -2
  30. package/dist/server.cjs.map +1 -1
  31. package/dist/server.mjs +2 -2
  32. package/dist/version.cjs +1 -1
  33. package/dist/version.cjs.map +1 -1
  34. package/dist/version.mjs +1 -1
  35. package/dist/vite.cjs +8 -2
  36. package/dist/vite.cjs.map +1 -1
  37. package/dist/vite.mjs +2 -2
  38. package/package.json +1 -1
  39. package/dist/chunk-NN6KJF7I.mjs.map +0 -1
  40. /package/dist/{chunk-OL7GH5ZC.mjs.map → chunk-KDKXMAIQ.mjs.map} +0 -0
  41. /package/dist/{chunk-ENS436YL.mjs.map → chunk-UBDJMY7B.mjs.map} +0 -0
package/dist/index.mjs CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-HEOT63FC.mjs";
10
10
  import {
11
11
  build
12
- } from "./chunk-OL7GH5ZC.mjs";
12
+ } from "./chunk-KDKXMAIQ.mjs";
13
13
  import "./chunk-SL6HTIOK.mjs";
14
14
  import "./chunk-4S3ORGFA.mjs";
15
15
  import {
@@ -208,7 +208,7 @@ import {
208
208
  createClientPluginManager,
209
209
  installChunkErrorRecovery,
210
210
  isChunkLoadError
211
- } from "./chunk-ENS436YL.mjs";
211
+ } from "./chunk-UBDJMY7B.mjs";
212
212
  import {
213
213
  analyzeStaticRouteCandidate,
214
214
  collectSSGPages,
@@ -227,7 +227,7 @@ import {
227
227
  parseRouteRenderingDirective,
228
228
  resolveRouteRenderingConfig,
229
229
  resolveRouteRenderingConfigFromFile
230
- } from "./chunk-NN6KJF7I.mjs";
230
+ } from "./chunk-BF47GPQF.mjs";
231
231
  import {
232
232
  APITypeGenerator
233
233
  } from "./chunk-4RDYOSFE.mjs";
@@ -570,7 +570,7 @@ import {
570
570
  runWithFarmSpan
571
571
  } from "./chunk-ZRBCBOEX.mjs";
572
572
  import "./chunk-FXG2PS27.mjs";
573
- import "./chunk-MV5WATSI.mjs";
573
+ import "./chunk-PZLBMD63.mjs";
574
574
  import {
575
575
  createCompressionPlugin,
576
576
  createEnvPlugin,
@@ -15836,7 +15836,7 @@ var init_server3 = __esm({
15836
15836
  var version;
15837
15837
  var init_package = __esm({
15838
15838
  "package.json"() {
15839
- version = "0.1.0-beta.76";
15839
+ version = "0.1.0-beta.77";
15840
15840
  }
15841
15841
  });
15842
15842
 
@@ -16001,6 +16001,11 @@ var init_server4 = __esm({
16001
16001
  });
16002
16002
 
16003
16003
  // src/server/renderer.ts
16004
+ function shouldServePrerenderedPage(nodeEnv, method) {
16005
+ if (nodeEnv !== "production") return false;
16006
+ const normalizedMethod = (method || "GET").toUpperCase();
16007
+ return normalizedMethod === "GET" || normalizedMethod === "HEAD";
16008
+ }
16004
16009
  function formatSSGManifestError(error) {
16005
16010
  return error instanceof Error ? error.message : String(error);
16006
16011
  }
@@ -16235,6 +16240,7 @@ var init_renderer2 = __esm({
16235
16240
  init_error_diagnostics();
16236
16241
  cachedClerkProvider = null;
16237
16242
  importRuntimeModule = new Function("specifier", "return import(specifier);");
16243
+ __name(shouldServePrerenderedPage, "shouldServePrerenderedPage");
16238
16244
  __name(formatSSGManifestError, "formatSSGManifestError");
16239
16245
  __name(parseSSGManifest, "parseSSGManifest");
16240
16246
  warnedSuppressedAsyncHydrationModules = /* @__PURE__ */ new Set();
@@ -16760,7 +16766,7 @@ var init_renderer2 = __esm({
16760
16766
  return;
16761
16767
  }
16762
16768
  }
16763
- if (process.env.NODE_ENV === "production") {
16769
+ if (shouldServePrerenderedPage(process.env.NODE_ENV, req.method)) {
16764
16770
  const ssgPage = await this.shouldServeSSG(pathname);
16765
16771
  if (ssgPage) {
16766
16772
  const served = await this.serveSSGPage(req, res, ssgPage);