@farm.js/core 0.1.0-beta.22 → 0.1.0-beta.23
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/dist/agent-runtime.d.mts +2 -1
- package/dist/agent-runtime.d.ts +2 -1
- package/dist/{app-BB8GCH1g.d.ts → app-CTFnOJaI.d.ts} +5 -3
- package/dist/{app-DwsTpyNZ.d.mts → app-DA6ospIq.d.mts} +5 -3
- package/dist/app-markdown.d.mts +2 -1
- package/dist/app-markdown.d.ts +2 -1
- package/dist/chunk-4IVNW5QD.mjs +82 -0
- package/dist/chunk-4IVNW5QD.mjs.map +1 -0
- package/dist/{chunk-DAUR3WUZ.mjs → chunk-5NOVWCFL.mjs} +2 -2
- package/dist/chunk-5NOVWCFL.mjs.map +1 -0
- package/dist/chunk-D42BNPZH.mjs +79 -0
- package/dist/chunk-D42BNPZH.mjs.map +1 -0
- package/dist/{chunk-LLPN5SEZ.mjs → chunk-DVPRBMU2.mjs} +2 -2
- package/dist/{chunk-ZP73P4VR.mjs → chunk-FJGTYLCO.mjs} +67 -20
- package/dist/chunk-FJGTYLCO.mjs.map +1 -0
- package/dist/chunk-GQVQESLY.mjs +25 -0
- package/dist/chunk-GQVQESLY.mjs.map +1 -0
- package/dist/chunk-H53KVQUU.mjs +48 -0
- package/dist/chunk-H53KVQUU.mjs.map +1 -0
- package/dist/chunk-HCGQYYHI.mjs +1 -0
- package/dist/chunk-HCGQYYHI.mjs.map +1 -0
- package/dist/{chunk-UCYWGN2P.mjs → chunk-OHNSROHS.mjs} +1 -1
- package/dist/{chunk-FRPWCMMG.mjs → chunk-SBWOTAX4.mjs} +63 -2
- package/dist/chunk-SBWOTAX4.mjs.map +1 -0
- package/dist/{chunk-XBKXKJX5.mjs → chunk-TX54PXAJ.mjs} +81 -25
- package/dist/chunk-TX54PXAJ.mjs.map +1 -0
- package/dist/{chunk-CEVMYGDL.mjs → chunk-YD5IRKVS.mjs} +13 -9
- package/dist/chunk-YD5IRKVS.mjs.map +1 -0
- package/dist/{client-plugins-QQntVkrv.d.mts → client-plugins-CCilIb_G.d.mts} +6 -2
- package/dist/{client-plugins-CbRum1fj.d.ts → client-plugins-DuuleQKk.d.ts} +6 -2
- package/dist/client-plugins.d.mts +2 -1
- package/dist/client-plugins.d.ts +2 -1
- package/dist/client.cjs +122 -35
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.mts +2 -0
- package/dist/client.d.ts +2 -0
- package/dist/client.mjs +13 -2
- package/dist/config.d.mts +2 -1
- package/dist/config.d.ts +2 -1
- package/dist/{devtools-52FYXIEK.mjs → devtools-326RBQCN.mjs} +7 -6
- package/dist/{devtools-52FYXIEK.mjs.map → devtools-326RBQCN.mjs.map} +1 -1
- package/dist/docs.cjs.map +1 -1
- package/dist/docs.mjs +6 -5
- package/dist/index.cjs +431 -55
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +10 -7
- package/dist/index.d.ts +10 -7
- package/dist/index.mjs +66 -49
- package/dist/index.mjs.map +1 -1
- package/dist/integrations.d.mts +2 -1
- package/dist/integrations.d.ts +2 -1
- package/dist/internal/build-runtime.cjs +337 -34
- package/dist/internal/build-runtime.cjs.map +1 -1
- package/dist/internal/build-runtime.d.mts +4 -3
- package/dist/internal/build-runtime.d.ts +4 -3
- package/dist/internal/build-runtime.mjs +15 -12
- package/dist/internal/config-runtime.cjs +41 -0
- package/dist/internal/config-runtime.cjs.map +1 -1
- package/dist/internal/config-runtime.d.mts +3 -2
- package/dist/internal/config-runtime.d.ts +3 -2
- package/dist/internal/config-runtime.mjs +5 -4
- package/dist/internal/production-runtime.cjs +178 -0
- package/dist/internal/production-runtime.cjs.map +1 -1
- package/dist/internal/production-runtime.d.mts +20 -6
- package/dist/internal/production-runtime.d.ts +20 -6
- package/dist/internal/production-runtime.mjs +13 -1
- package/dist/internal/production-runtime.mjs.map +1 -1
- package/dist/{metadata-B5jBJHq1.d.ts → metadata-DyPRG0wX.d.ts} +1 -1
- package/dist/{metadata-BxOJ4FJl.d.mts → metadata-_GHcAySx.d.mts} +1 -1
- package/dist/middleware.d.mts +4 -3
- package/dist/middleware.d.ts +4 -3
- package/dist/plugin.cjs +219 -14
- package/dist/plugin.cjs.map +1 -1
- package/dist/plugin.d.mts +2 -1
- package/dist/plugin.d.ts +2 -1
- package/dist/plugin.mjs +11 -8
- package/dist/{production-runtime-Bxua86uR.d.mts → production-runtime-C4cO3esK.d.mts} +1 -1
- package/dist/{production-runtime-CZqXjRVi.d.ts → production-runtime-DrEy8kBO.d.ts} +1 -1
- package/dist/{request-7V0GaZK_.d.mts → request-B2PpOxYK.d.mts} +1 -1
- package/dist/{request-B5XYBv5a.d.ts → request-D40lt6aN.d.ts} +1 -1
- package/dist/request.d.mts +3 -2
- package/dist/request.d.ts +3 -2
- package/dist/routes.d.mts +2 -1
- package/dist/routes.d.ts +2 -1
- package/dist/server-plugins.d.mts +3 -2
- package/dist/server-plugins.d.ts +3 -2
- package/dist/server.cjs +241 -19
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.mts +8 -6
- package/dist/server.d.ts +8 -6
- package/dist/server.mjs +20 -11
- package/dist/server.mjs.map +1 -1
- package/dist/testing.d.mts +2 -1
- package/dist/testing.d.ts +2 -1
- package/dist/theme/client.cjs +115 -0
- package/dist/theme/client.cjs.map +1 -0
- package/dist/theme/client.d.mts +17 -0
- package/dist/theme/client.d.ts +17 -0
- package/dist/theme/client.mjs +16 -0
- package/dist/theme/client.mjs.map +1 -0
- package/dist/theme/index.cjs +71 -0
- package/dist/theme/index.cjs.map +1 -0
- package/dist/theme/index.d.mts +6 -0
- package/dist/theme/index.d.ts +6 -0
- package/dist/theme/index.mjs +9 -0
- package/dist/theme/index.mjs.map +1 -0
- package/dist/theme/server.cjs +191 -0
- package/dist/theme/server.cjs.map +1 -0
- package/dist/theme/server.d.mts +8 -0
- package/dist/theme/server.d.ts +8 -0
- package/dist/theme/server.mjs +18 -0
- package/dist/theme/server.mjs.map +1 -0
- package/dist/types-CsR8fpgF.d.mts +30 -0
- package/dist/types-CsR8fpgF.d.ts +30 -0
- package/dist/{utils-xTFxzu47.d.ts → utils-3sQgfkya.d.ts} +1 -1
- package/dist/{utils-s9pN0Yep.d.mts → utils-Bop7bly-.d.mts} +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.cjs.map +1 -1
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +242 -15
- package/dist/vite.cjs.map +1 -1
- package/dist/vite.d.mts +2 -1
- package/dist/vite.d.ts +2 -1
- package/dist/vite.mjs +11 -8
- package/package.json +25 -1
- package/dist/chunk-CEVMYGDL.mjs.map +0 -1
- package/dist/chunk-DAUR3WUZ.mjs.map +0 -1
- package/dist/chunk-FRPWCMMG.mjs.map +0 -1
- package/dist/chunk-XBKXKJX5.mjs.map +0 -1
- package/dist/chunk-ZP73P4VR.mjs.map +0 -1
- /package/dist/{chunk-LLPN5SEZ.mjs.map → chunk-DVPRBMU2.mjs.map} +0 -0
- /package/dist/{chunk-UCYWGN2P.mjs.map → chunk-OHNSROHS.mjs.map} +0 -0
|
@@ -20,27 +20,30 @@ import {
|
|
|
20
20
|
loadFarmConfigFile,
|
|
21
21
|
resolveFarmLayers
|
|
22
22
|
} from "./chunk-74YTBPTY.mjs";
|
|
23
|
+
import {
|
|
24
|
+
resolveFarmImageConfig
|
|
25
|
+
} from "./chunk-GY2STC2S.mjs";
|
|
23
26
|
import {
|
|
24
27
|
resolveFarmPerformanceConfig
|
|
25
28
|
} from "./chunk-7ZVN3YZI.mjs";
|
|
26
29
|
import {
|
|
27
|
-
|
|
28
|
-
} from "./chunk-
|
|
30
|
+
resolveWorkflowsConfig
|
|
31
|
+
} from "./chunk-4E6VRJ6P.mjs";
|
|
32
|
+
import {
|
|
33
|
+
resolveCronConfig
|
|
34
|
+
} from "./chunk-GXASWWJU.mjs";
|
|
29
35
|
import {
|
|
30
36
|
resolveServerActionsConfig
|
|
31
37
|
} from "./chunk-WORFTBLU.mjs";
|
|
38
|
+
import {
|
|
39
|
+
resolveFarmThemeConfig
|
|
40
|
+
} from "./chunk-H53KVQUU.mjs";
|
|
32
41
|
import {
|
|
33
42
|
resolveMdxConfig
|
|
34
43
|
} from "./chunk-ZVWA4ZQ3.mjs";
|
|
35
44
|
import {
|
|
36
45
|
resolveMarkdownConfig
|
|
37
46
|
} from "./chunk-7FBJLMQH.mjs";
|
|
38
|
-
import {
|
|
39
|
-
resolveWorkflowsConfig
|
|
40
|
-
} from "./chunk-4E6VRJ6P.mjs";
|
|
41
|
-
import {
|
|
42
|
-
resolveCronConfig
|
|
43
|
-
} from "./chunk-GXASWWJU.mjs";
|
|
44
47
|
import {
|
|
45
48
|
resolveIntegrationPlugins
|
|
46
49
|
} from "./chunk-CRN3AH35.mjs";
|
|
@@ -406,6 +409,7 @@ async function resolveConfig(userConfig, mode) {
|
|
|
406
409
|
routeRules,
|
|
407
410
|
images: resolveFarmImageConfig(userConfig.images),
|
|
408
411
|
performance: resolveFarmPerformanceConfig(userConfig.performance),
|
|
412
|
+
theme: resolveFarmThemeConfig(userConfig.theme, userConfig.basePath || "/"),
|
|
409
413
|
publicDir: userConfig.publicDir || "public",
|
|
410
414
|
i18n: resolveFarmI18nConfig(userConfig.i18n, { root, mode }),
|
|
411
415
|
openapi: {
|
|
@@ -497,4 +501,4 @@ export {
|
|
|
497
501
|
resolveConfig,
|
|
498
502
|
loadConfig
|
|
499
503
|
};
|
|
500
|
-
//# sourceMappingURL=chunk-
|
|
504
|
+
//# sourceMappingURL=chunk-YD5IRKVS.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/config.ts"],"sourcesContent":["import type {\n FarmConfig as BaseFarmConfig,\n FarmMigrationCommand,\n FarmMigrationsConfig,\n FarmMigrationsUserConfig,\n ResolvedFarmMigrationsConfig,\n} from \"./types\";\nimport type { DocsConfig } from \"@farming-labs/docs\";\nimport type { FarmDocsResolvedConfig, FarmDocsUserConfig } from \"./docs/types\";\nimport type { FarmIntegrationsUserConfig } from \"./integrations\";\nimport type { FarmMarkdownResolvedConfig, FarmMarkdownUserConfig } from \"./markdown\";\nimport type { FarmObservabilityUserConfig } from \"./observability\";\nimport type { FarmMiddlewareConfig } from \"./middleware/types\";\nimport type { FarmPlugin } from \"./plugin\";\nimport type { FarmWorkflowsResolvedConfig, FarmWorkflowsUserConfig } from \"./workflows\";\nimport type { FarmCronResolvedConfig, FarmCronUserConfig } from \"./cron\";\nimport type { FarmEnvConfig, ResolvedFarmEnv } from \"./env\";\nimport type { UserConfig as ViteUserConfig } from \"vite\";\nimport { resolveIntegrationPlugins } from \"./integrations\";\nimport { resolveMarkdownConfig } from \"./markdown\";\nimport { resolveWorkflowsConfig } from \"./workflows\";\nimport { resolveCronConfig } from \"./cron\";\nimport { resolveEnv, setEnv } from \"./env\";\nimport {\n resolveMdxConfig,\n type FarmMdxResolvedConfig,\n type FarmMdxUserConfig,\n} from \"./app-markdown\";\nimport {\n normalizeRouteRules,\n routeRulesToHeaders,\n routeRulesToRedirects,\n type FarmRouteRules,\n} from \"./route-rules\";\nimport {\n resolveServerActionsConfig,\n type FarmServerActionsConfig,\n type ResolvedFarmServerActionsConfig,\n} from \"./server-action-security\";\nimport {\n resolveFarmServerConfig,\n type FarmServerConfig,\n type ResolvedFarmServerConfig,\n} from \"./server-http\";\nimport {\n loadFarmConfigFile,\n resolveFarmLayers,\n type FarmLayerEntry,\n type ResolvedFarmLayer,\n} from \"./layers\";\nimport path from \"path\";\nimport { normalizeFarmDeploymentId } from \"./deployment\";\nimport { resolveFarmDevtoolsConfig, type ResolvedFarmDevtoolsConfig } from \"./devtools-config\";\nimport {\n resolveFarmImageConfig,\n type FarmImageConfig,\n type ResolvedFarmImageConfig,\n} from \"./image-config\";\nimport { resolveFarmI18nConfig } from \"./i18n/config\";\nimport type { FarmI18nUserConfig, ResolvedFarmI18nConfig } from \"./i18n/types\";\nimport type { FarmCacheUserConfig } from \"./cache\";\nimport {\n resolveFarmAuthConfig,\n resolveFarmAuthIntegration,\n type FarmAuthUserConfig,\n type ResolvedFarmAuthConfig,\n} from \"./auth-config\";\nimport { resolveFarmPerformanceConfig, type ResolvedFarmPerformanceConfig } from \"./preload\";\nimport {\n getFarmSecurityHeader,\n resolveFarmSecurityConfig,\n type FarmCspConfig,\n type FarmCspDirectives,\n type FarmCspDirectiveValue,\n type FarmCspOptions,\n type FarmSecurityConfig,\n type ResolvedFarmCspConfig,\n type ResolvedFarmSecurityConfig,\n} from \"./security\";\nimport { resolveFarmThemeConfig } from \"./theme/config\";\nimport type { ResolvedFarmThemeConfig } from \"./theme/types\";\n\nconst FARM_RESOLVED_CUSTOM_CONTEXT = Symbol.for(\"farm.resolvedCustomContext\");\n\nexport type {\n FarmDocsConfigInput,\n FarmDocsNavigationConfig,\n FarmDocsResolvedConfig,\n FarmDocsSidebarItem,\n FarmDocsUserConfig,\n} from \"./docs/types\";\nexport type {\n FarmMarkdownResolvedConfig,\n FarmMarkdownRouteInput,\n FarmMarkdownUserConfig,\n} from \"./markdown\";\nexport type { FarmMdxComponents, FarmMdxResolvedConfig, FarmMdxUserConfig } from \"./app-markdown\";\nexport type {\n FarmMigrationCommand,\n FarmMigrationsConfig,\n FarmMigrationsUserConfig,\n ResolvedFarmMigrationsConfig,\n} from \"./types\";\nexport type { FarmWorkflowsResolvedConfig, FarmWorkflowsUserConfig } from \"./workflows\";\nexport type { FarmCronJobConfig, FarmCronResolvedConfig, FarmCronUserConfig } from \"./cron\";\nexport type {\n FarmRouteRule,\n FarmRouteRuleCors,\n FarmRouteRuleRedirect,\n FarmRouteRuleRenderMode,\n FarmRouteRules,\n} from \"./route-rules\";\nexport type {\n FarmServerActionsConfig,\n ResolvedFarmServerActionsConfig,\n} from \"./server-action-security\";\nexport type {\n FarmServerConfig,\n FarmServerDuration,\n FarmServerHealthConfig,\n ResolvedFarmServerConfig,\n ResolvedFarmServerHealthConfig,\n} from \"./server-http\";\nexport type { FarmLayerEntry, ResolvedFarmLayer } from \"./layers\";\nexport type {\n FarmDevtoolsConfig,\n FarmDevtoolsUserConfig,\n ResolvedFarmDevtoolsConfig,\n} from \"./devtools-config\";\nexport type {\n FarmPerformanceConfig,\n FarmPreloadMode,\n FarmPreloadUserConfig,\n ResolvedFarmPerformanceConfig,\n ResolvedFarmPreloadConfig,\n} from \"./preload\";\nexport type {\n FarmImageConfig,\n FarmImageFormat,\n FarmImageLocalPattern,\n FarmImageProvider,\n FarmImageRemotePattern,\n ResolvedFarmImageConfig,\n} from \"./image-config\";\nexport type {\n FarmI18nCookieConfig,\n FarmI18nDetectionSignal,\n FarmI18nDirection,\n FarmI18nRouting,\n FarmI18nUserConfig,\n ResolvedFarmI18nConfig,\n} from \"./i18n/types\";\nexport type {\n FarmAuthConfig,\n FarmAuthDatabaseConfig,\n FarmAuthEmailAndPasswordConfig,\n FarmAuthSessionConfig,\n FarmAuthUserConfig,\n ResolvedFarmAuthConfig,\n} from \"./auth-config\";\nexport type {\n FarmCspConfig,\n FarmCspDirectives,\n FarmCspDirectiveValue,\n FarmCspOptions,\n FarmSecurityConfig,\n ResolvedFarmCspConfig,\n ResolvedFarmSecurityConfig,\n} from \"./security\";\n\nexport interface RedirectConfig {\n source: string;\n destination: string;\n permanent?: boolean;\n statusCode?: number;\n}\n\nexport interface HeaderConfig {\n source: string;\n headers: Array<{\n key: string;\n value: string;\n }>;\n}\n\nexport interface RewriteConfig {\n source: string;\n destination: string;\n}\n\n/** @deprecated Use FarmImageConfig. */\nexport type ImageConfig = FarmImageConfig;\n\n/** @deprecated Use FarmI18nUserConfig. */\nexport type I18nConfig = FarmI18nUserConfig;\n\nexport interface OpenAPIConfig {\n enabled?: boolean;\n route?: string;\n title?: string;\n description?: string;\n version?: string;\n servers?: Array<{\n url: string;\n description?: string;\n }>;\n contact?: {\n name?: string;\n email?: string;\n url?: string;\n };\n license?: {\n name: string;\n url?: string;\n };\n}\n\nexport type MiddlewareConfig = FarmMiddlewareConfig;\n\nexport interface NotFoundConfig {\n /** Path to a custom 404 page component (e.g., \"./src/app/not-found.tsx\") */\n component?: string;\n}\n\nexport type FarmDeployTarget = \"vercel\" | \"cloudflare\" | \"netlify\" | \"node\" | string;\n\nexport interface FarmDeployConfig {\n /**\n * Deployment platform. When present, Farm picks the matching Nitro preset and\n * output directory unless explicitly overridden.\n */\n target?: FarmDeployTarget;\n /** Nitro preset override. Usually inferred from target. */\n preset?: BaseFarmConfig[\"preset\"];\n /** Deployable output directory, relative to project root unless absolute. */\n outputDir?: string;\n /** Alias for outputDir for terser config. */\n output?: string;\n /** Cloudflare Pages project name used by `farm deploy --cloudflare`. */\n projectName?: string;\n vercel?: {\n outputDirectory?: string;\n buildCommand?: string;\n installCommand?: string;\n framework?: string | null;\n };\n cloudflare?: {\n outputDir?: string;\n projectName?: string;\n };\n netlify?: {\n outputDir?: string;\n site?: string;\n };\n}\n\nexport interface ResolvedFarmDeployConfig extends Omit<FarmDeployConfig, \"output\"> {\n target?: FarmDeployTarget;\n preset: BaseFarmConfig[\"preset\"];\n outputDir: string;\n}\n\nexport interface FarmUserConfig extends Omit<BaseFarmConfig, \"vite\" | \"docs\" | \"env\" | \"layers\"> {\n /** Reusable Farm directories or installed packages, applied from left to right. */\n extends?: readonly FarmLayerEntry[];\n /** Global plugins. Integration-bound plugins must be contributed through an integration. */\n plugins?: FarmPlugin<any, any, any, any, unknown, false>[];\n integrations?: FarmIntegrationsUserConfig;\n /**\n * Farm-native authentication. `true` enables email/password auth with\n * server helpers from `@farm.js/auth/server` and React APIs from\n * `@farm.js/auth/client`.\n */\n auth?: FarmAuthUserConfig;\n /** Shared application data, route, ISR, and PPR cache. */\n cache?: FarmCacheUserConfig;\n migrations?: FarmMigrationsUserConfig;\n /** Map portable cron schedules to ordinary GET API routes. */\n cron?: FarmCronUserConfig | FarmCronResolvedConfig | false;\n workflows?: FarmWorkflowsUserConfig | boolean;\n preset?: BaseFarmConfig[\"preset\"];\n deploy?: FarmDeployConfig;\n docs?: FarmDocsUserConfig;\n md?: FarmMarkdownUserConfig | boolean;\n mdx?: FarmMdxUserConfig;\n observability?: FarmObservabilityUserConfig;\n\n trailingSlash?: boolean;\n redirects?: () => Promise<RedirectConfig[]> | RedirectConfig[];\n rewrites?: () => Promise<RewriteConfig[]> | RewriteConfig[];\n headers?: () => Promise<HeaderConfig[]> | HeaderConfig[];\n\n images?: ImageConfig;\n publicDir?: string;\n\n i18n?: FarmI18nUserConfig | false;\n openapi?: OpenAPIConfig;\n\n middleware?: FarmMiddlewareConfig;\n routeRules?: FarmRouteRules;\n context?: BaseFarmConfig[\"context\"];\n /** Server ingress and trusted-proxy policy. */\n server?: FarmServerConfig;\n serverActions?: FarmServerActionsConfig;\n /** Build identifier used to detect and recover from deployment version skew. */\n deploymentId?: string;\n\n notFound?: NotFoundConfig;\n\n output?: \"standalone\" | \"static\" | \"export\";\n distDir?: string;\n generateBuildId?: () => string | Promise<string>;\n compress?: boolean;\n\n devIndicators?: {\n buildActivity?: boolean;\n buildActivityPosition?: \"bottom-right\" | \"bottom-left\" | \"top-right\" | \"top-left\";\n };\n\n serverRuntimeConfig?: Record<string, any>;\n publicRuntimeConfig?: Record<string, any>;\n\n env?: FarmEnvConfig<any, any>;\n\n typescript?: {\n tsconfigPath?: string;\n ignoreBuildErrors?: boolean;\n };\n\n vite?: ViteUserConfig | ((config: ViteUserConfig) => ViteUserConfig);\n\n [key: string]: any;\n}\n\nexport interface ResolvedFarmConfig extends Required<\n Omit<\n FarmUserConfig,\n | \"extends\"\n | \"plugins\"\n | \"vite\"\n | \"deploy\"\n | \"docs\"\n | \"md\"\n | \"mdx\"\n | \"migrations\"\n | \"cron\"\n | \"workflows\"\n | \"env\"\n | \"server\"\n | \"serverActions\"\n | \"devtools\"\n | \"images\"\n | \"i18n\"\n | \"auth\"\n | \"performance\"\n | \"security\"\n | \"theme\"\n >\n> {\n /** @internal Tracks whether `context` came from user/layer config instead of the default noop. */\n [FARM_RESOLVED_CUSTOM_CONTEXT]?: boolean;\n extends: readonly FarmLayerEntry[];\n layers: ResolvedFarmLayer[];\n plugins: FarmPlugin[];\n vite: ViteUserConfig;\n deploy: ResolvedFarmDeployConfig;\n docs: FarmDocsResolvedConfig;\n md: FarmMarkdownResolvedConfig;\n mdx: FarmMdxResolvedConfig;\n migrations: ResolvedFarmMigrationsConfig;\n cron: FarmCronResolvedConfig;\n workflows: FarmWorkflowsResolvedConfig;\n env: ResolvedFarmEnv;\n server: ResolvedFarmServerConfig;\n serverActions: ResolvedFarmServerActionsConfig;\n devtools: ResolvedFarmDevtoolsConfig;\n images: ResolvedFarmImageConfig;\n i18n: ResolvedFarmI18nConfig;\n auth: ResolvedFarmAuthConfig;\n performance: ResolvedFarmPerformanceConfig;\n security: ResolvedFarmSecurityConfig;\n theme: ResolvedFarmThemeConfig;\n routeRules: FarmRouteRules;\n}\n\nexport function hasCustomFarmRouteContext(config: ResolvedFarmConfig): boolean {\n return config[FARM_RESOLVED_CUSTOM_CONTEXT] === true;\n}\n\nexport type FarmLayerConfig = Omit<\n FarmUserConfig,\n | \"root\"\n | \"outDir\"\n | \"distDir\"\n | \"deploy\"\n | \"output\"\n | \"preset\"\n | \"publicDir\"\n | \"generateBuildId\"\n | \"deploymentId\"\n>;\n\nexport { defineConfig, defineFarmConfig } from \"./config-entry\";\n\nexport function normalizeDeployTarget(target?: FarmDeployTarget): FarmDeployTarget | undefined {\n if (!target) return undefined;\n if (target === \"cloudflare-pages\" || target === \"cloudflare_pages\") return \"cloudflare\";\n if (target === \"node-server\" || target === \"nitro\") return \"node\";\n return target;\n}\n\nexport function getPresetForDeployTarget(\n target?: FarmDeployTarget,\n): BaseFarmConfig[\"preset\"] | undefined {\n switch (normalizeDeployTarget(target)) {\n case \"vercel\":\n return \"vercel\";\n case \"cloudflare\":\n return \"cloudflare-pages\";\n case \"netlify\":\n return \"netlify\";\n case \"node\":\n return \"node-server\";\n default:\n return undefined;\n }\n}\n\nexport function getDeployTargetForPreset(preset?: string): FarmDeployTarget | undefined {\n if (!preset) return undefined;\n if (preset === \"vercel\" || preset === \"vercel-edge\") return \"vercel\";\n if (preset === \"cloudflare\" || preset === \"cloudflare-pages\" || preset === \"cloudflare-module\") {\n return \"cloudflare\";\n }\n if (preset === \"netlify\" || preset === \"netlify-edge\") return \"netlify\";\n if (preset === \"node-server\") return \"node\";\n return undefined;\n}\n\nexport function getDefaultDeployOutputDir(\n target: FarmDeployTarget | undefined,\n preset: string | undefined,\n distDir: string,\n): string {\n const normalizedTarget = normalizeDeployTarget(target) || getDeployTargetForPreset(preset);\n if (normalizedTarget === \"vercel\") return \".vercel/output\";\n return `${distDir}/.output`;\n}\n\nexport function resolveDeployOutputPath(root: string, outputDir: string): string {\n return path.isAbsolute(outputDir) ? outputDir : path.join(root, outputDir);\n}\n\nexport function resolveDeployConfig(\n config: Pick<FarmUserConfig, \"deploy\" | \"preset\" | \"distDir\">,\n overrides: {\n target?: FarmDeployTarget;\n preset?: BaseFarmConfig[\"preset\"];\n outputDir?: string;\n } = {},\n): ResolvedFarmDeployConfig {\n const deploy = config.deploy || {};\n const distDir = config.distDir || \".farm\";\n const target = normalizeDeployTarget(overrides.target || deploy.target);\n const preset =\n overrides.preset ||\n deploy.preset ||\n config.preset ||\n getPresetForDeployTarget(target) ||\n \"node-server\";\n const resolvedTarget = target || getDeployTargetForPreset(preset);\n const platformOutput =\n resolvedTarget === \"vercel\"\n ? deploy.vercel?.outputDirectory\n : resolvedTarget === \"cloudflare\"\n ? deploy.cloudflare?.outputDir\n : resolvedTarget === \"netlify\"\n ? deploy.netlify?.outputDir\n : undefined;\n const outputDir =\n overrides.outputDir ||\n deploy.outputDir ||\n deploy.output ||\n platformOutput ||\n getDefaultDeployOutputDir(resolvedTarget, preset, distDir);\n\n return {\n ...deploy,\n target: resolvedTarget,\n preset,\n outputDir,\n };\n}\n\nexport function resolveMigrationsConfig(\n migrations: FarmMigrationsUserConfig | undefined,\n): ResolvedFarmMigrationsConfig {\n if (!migrations) return { commands: [] };\n if (Array.isArray(migrations)) return { commands: migrations };\n return { commands: migrations.commands || [] };\n}\n\nexport const DOCS_CONFIG_FILENAMES = [\n \"docs.config.ts\",\n \"docs.config.tsx\",\n \"docs.config.mts\",\n \"docs.config.cts\",\n \"docs.config.js\",\n \"docs.config.jsx\",\n \"docs.config.mjs\",\n \"docs.config.cjs\",\n \"docs.json\",\n];\n\nfunction normalizeDocsRoute(value: string | undefined, fallback = \"/docs\"): string {\n const raw = (value || fallback).trim();\n if (!raw || raw === \"/\") return \"/\";\n const normalized = raw\n .replace(/\\\\/g, \"/\")\n .replace(/\\/+/g, \"/\")\n .replace(/^\\/?/, \"/\")\n .replace(/\\/+$/, \"\");\n return normalized || \"/\";\n}\n\nfunction docsRouteToEntry(route: string): string {\n const entry = route.replace(/^\\/+/, \"\").replace(/\\/+$/, \"\");\n return entry || \"docs\";\n}\n\nfunction normalizeDocsContentDir(value: string | undefined): string | undefined {\n if (!value) return undefined;\n const normalized = value.replace(/\\\\/g, \"/\").replace(/^\\/+/, \"\").replace(/\\/+$/, \"\");\n return normalized || undefined;\n}\n\nfunction isRecord(value: unknown): value is Record<string, any> {\n return !!value && typeof value === \"object\" && !Array.isArray(value);\n}\n\nfunction cloneSerializable(value: unknown, seen = new WeakSet<object>()): any {\n if (value === null) return null;\n\n const valueType = typeof value;\n if (valueType === \"string\" || valueType === \"number\" || valueType === \"boolean\") {\n return value;\n }\n if (valueType === \"undefined\" || valueType === \"function\" || valueType === \"symbol\") {\n return undefined;\n }\n if (Array.isArray(value)) {\n return value.map((item) => cloneSerializable(item, seen)).filter((item) => item !== undefined);\n }\n if (value instanceof Date) {\n return value.toISOString();\n }\n if (isRecord(value)) {\n if (seen.has(value)) return undefined;\n seen.add(value);\n\n const output: Record<string, any> = {};\n for (const [key, nestedValue] of Object.entries(value)) {\n const clonedValue = cloneSerializable(nestedValue, seen);\n if (clonedValue !== undefined) {\n output[key] = clonedValue;\n }\n }\n return output;\n }\n\n return undefined;\n}\n\nfunction sanitizeDocsConfig(config: Partial<DocsConfig>): Partial<DocsConfig> {\n return cloneSerializable(config) || {};\n}\n\nexport async function findDocsConfigPath(\n rootDir: string,\n configPath?: string,\n): Promise<string | undefined> {\n const { existsSync } = await import(\"fs\");\n const root = path.resolve(rootDir || process.cwd());\n\n if (configPath) {\n const resolvedPath = path.isAbsolute(configPath) ? configPath : path.join(root, configPath);\n if (!existsSync(resolvedPath)) {\n throw new Error(`Could not find docs config at ${configPath}.`);\n }\n return path.resolve(resolvedPath);\n }\n\n for (const filename of DOCS_CONFIG_FILENAMES) {\n const resolvedPath = path.join(root, filename);\n if (existsSync(resolvedPath)) {\n return resolvedPath;\n }\n }\n\n return undefined;\n}\n\nexport async function loadDocsConfig(\n rootDir: string,\n configPath?: string,\n): Promise<{ config: Partial<DocsConfig>; configPath: string } | undefined> {\n const fs = await import(\"fs/promises\");\n const { pathToFileURL } = await import(\"url\");\n const root = path.resolve(rootDir || process.cwd());\n const resolvedPath = await findDocsConfigPath(root, configPath);\n\n if (!resolvedPath) return undefined;\n\n try {\n if (resolvedPath.endsWith(\".json\")) {\n const content = await fs.readFile(resolvedPath, \"utf8\");\n return { config: JSON.parse(content), configPath: resolvedPath };\n }\n\n const { build } = await import(\"esbuild\");\n const configCacheDir = path.join(root, \".farm\", \".config-loader\");\n await fs.mkdir(configCacheDir, { recursive: true });\n const modulePath = path.join(\n configCacheDir,\n `docs-config-${Date.now()}-${Math.random().toString(36).slice(2)}.mjs`,\n );\n\n await build({\n absWorkingDir: root,\n entryPoints: [resolvedPath],\n outfile: modulePath,\n bundle: true,\n format: \"esm\",\n platform: \"node\",\n target: `node${process.versions.node.split(\".\")[0]}`,\n packages: \"external\",\n jsx: \"automatic\",\n logLevel: \"silent\",\n sourcemap: \"inline\",\n });\n\n const moduleUrl = pathToFileURL(modulePath).href + `?t=${Date.now()}`;\n let importedConfig: any;\n\n try {\n importedConfig = await import(/* @vite-ignore */ moduleUrl);\n } finally {\n await fs.unlink(modulePath).catch(() => undefined);\n }\n\n return {\n config: importedConfig.default || importedConfig,\n configPath: resolvedPath,\n };\n } catch (error: any) {\n const relativePath = path.relative(root, resolvedPath) || resolvedPath;\n const message = error instanceof Error ? error.message : String(error);\n throw new Error(`Failed to load docs config from ${relativePath}: ${message}`);\n }\n}\n\nexport async function resolveDocsConfig(\n userDocs: FarmDocsUserConfig | undefined,\n options: {\n root?: string;\n srcDir?: string;\n } = {},\n): Promise<FarmDocsResolvedConfig> {\n const root = options.root || process.cwd();\n\n if (userDocs === false) {\n return {\n enabled: false,\n entry: \"/docs\",\n config: { entry: \"docs\", docsPath: \"/docs\" },\n };\n }\n\n const docsOptions = isRecord(userDocs) ? userDocs : {};\n if (docsOptions.enabled === false) {\n return {\n enabled: false,\n entry: \"/docs\",\n config: { entry: \"docs\", docsPath: \"/docs\" },\n };\n }\n\n const loadedConfig = await loadDocsConfig(root, docsOptions.configPath);\n const hasExplicitDocsConfig = userDocs === true || isRecord(userDocs);\n\n if (!hasExplicitDocsConfig && !loadedConfig) {\n return {\n enabled: false,\n entry: \"/docs\",\n config: { entry: \"docs\", docsPath: \"/docs\" },\n };\n }\n\n const inlineDocsConfig = sanitizeDocsConfig(docsOptions.config || {});\n const directDocsConfig = sanitizeDocsConfig({\n ...docsOptions,\n enabled: undefined,\n config: undefined,\n configPath: undefined,\n } as Partial<DocsConfig>);\n const loadedDocsConfig = sanitizeDocsConfig(loadedConfig?.config || {});\n const mergedDocsConfig: Partial<DocsConfig> = {\n ...loadedDocsConfig,\n ...inlineDocsConfig,\n ...directDocsConfig,\n };\n\n const explicitRoute = typeof docsOptions.entry === \"string\" ? docsOptions.entry : undefined;\n const configuredDocsPath =\n typeof mergedDocsConfig.docsPath === \"string\" ? mergedDocsConfig.docsPath : undefined;\n const configuredEntry =\n typeof mergedDocsConfig.entry === \"string\" ? mergedDocsConfig.entry : undefined;\n const entryRoute = normalizeDocsRoute(\n configuredDocsPath || explicitRoute || (configuredEntry ? `/${configuredEntry}` : undefined),\n );\n const docsEntry =\n explicitRoute && explicitRoute.startsWith(\"/\")\n ? docsRouteToEntry(explicitRoute)\n : docsRouteToEntry(configuredEntry || entryRoute);\n const contentDir = normalizeDocsContentDir(docsOptions.contentDir || mergedDocsConfig.contentDir);\n\n return {\n enabled: true,\n entry: entryRoute,\n contentDir,\n configPath: loadedConfig?.configPath,\n config: {\n ...mergedDocsConfig,\n entry: docsEntry,\n docsPath: entryRoute,\n ...(contentDir ? { contentDir } : {}),\n },\n };\n}\n\nexport async function resolveConfig(\n userConfig: FarmUserConfig,\n mode: \"development\" | \"production\",\n): Promise<ResolvedFarmConfig> {\n const projectRoot = userConfig.root || process.cwd();\n const layerResolution = await resolveFarmLayers(userConfig, {\n root: projectRoot,\n mode,\n });\n userConfig = layerResolution.config;\n\n const redirects =\n typeof userConfig.redirects === \"function\"\n ? await userConfig.redirects()\n : userConfig.redirects || [];\n\n const rewrites =\n typeof userConfig.rewrites === \"function\"\n ? await userConfig.rewrites()\n : userConfig.rewrites || [];\n\n const headers =\n typeof userConfig.headers === \"function\"\n ? await userConfig.headers()\n : userConfig.headers || [];\n const routeRules = normalizeRouteRules(userConfig.routeRules);\n const routeRuleRedirects = routeRulesToRedirects(routeRules);\n const routeRuleHeaders = routeRulesToHeaders(routeRules);\n const security = resolveFarmSecurityConfig(userConfig.security);\n const securityHeader = getFarmSecurityHeader(security);\n\n const deploy = resolveDeployConfig(userConfig);\n const root = userConfig.root || process.cwd();\n const srcDir = userConfig.srcDir || \"src\";\n const docs = await resolveDocsConfig(userConfig.docs, { root, srcDir });\n const md = resolveMarkdownConfig(userConfig.md);\n const mdx = resolveMdxConfig(userConfig.mdx);\n const env = resolveEnv(userConfig.env, process.env);\n setEnv(env);\n const auth = resolveFarmAuthConfig(userConfig.auth);\n if (auth.enabled && userConfig.integrations?.auth) {\n throw new Error(\n \"Choose either the top-level `auth` config or `integrations.auth`; they cannot both own the auth route.\",\n );\n }\n const nativeAuthIntegration = await resolveFarmAuthIntegration(auth, {\n root,\n mode,\n });\n const integrations = nativeAuthIntegration\n ? { ...userConfig.integrations, auth: nativeAuthIntegration }\n : userConfig.integrations || {};\n const generateBuildId = userConfig.generateBuildId || (() => `build-${Date.now()}`);\n const deploymentId = normalizeFarmDeploymentId(\n userConfig.deploymentId ||\n process.env.FARM_DEPLOYMENT_ID ||\n process.env.VERCEL_GIT_COMMIT_SHA ||\n process.env.CF_PAGES_COMMIT_SHA ||\n (mode === \"production\" ? await generateBuildId() : \"development\"),\n );\n\n const resolved: ResolvedFarmConfig = {\n [FARM_RESOLVED_CUSTOM_CONTEXT]: typeof userConfig.context === \"function\",\n root,\n srcDir,\n extends: userConfig.extends || [],\n layers: layerResolution.layers,\n outDir: userConfig.outDir || \"dist\",\n basePath: userConfig.basePath || \"/\",\n preset: deploy.preset || \"node-server\",\n deploy,\n docs,\n md,\n mdx,\n migrations: resolveMigrationsConfig(userConfig.migrations),\n cron: resolveCronConfig(userConfig.cron),\n workflows: resolveWorkflowsConfig(userConfig.workflows),\n observability: userConfig.observability ?? false,\n devtools: resolveFarmDevtoolsConfig(userConfig.devtools, mode),\n storage: userConfig.storage || {},\n cache: userConfig.cache || {},\n auth,\n suppressLintOnLink: userConfig.suppressLintOnLink ?? false,\n experimental: {\n serverComponents: false,\n serverActions: false,\n ...userConfig.experimental,\n },\n plugins: [...resolveIntegrationPlugins(integrations), ...(userConfig.plugins || [])],\n integrations,\n trailingSlash: userConfig.trailingSlash ?? false,\n redirects: () => [...redirects, ...routeRuleRedirects],\n rewrites: () => rewrites,\n headers: () => [\n ...headers,\n ...routeRuleHeaders,\n ...(securityHeader ? [{ source: \"/*\", headers: [securityHeader] }] : []),\n ],\n routeRules,\n images: resolveFarmImageConfig(userConfig.images),\n performance: resolveFarmPerformanceConfig(userConfig.performance),\n theme: resolveFarmThemeConfig(userConfig.theme, userConfig.basePath || \"/\"),\n publicDir: userConfig.publicDir || \"public\",\n i18n: resolveFarmI18nConfig(userConfig.i18n, { root, mode }),\n openapi: {\n enabled: false,\n route: \"/docs/reference\",\n title: \"API Documentation\",\n description: \"Auto-generated API documentation\",\n version: \"1.0.0\",\n servers: [{ url: \"http://localhost:3000\", description: \"Development server\" }],\n ...userConfig.openapi,\n },\n middleware: userConfig.middleware || {},\n notFound: userConfig.notFound || {},\n context: userConfig.context || (() => undefined),\n server: resolveFarmServerConfig(userConfig.server),\n serverActions: resolveServerActionsConfig(userConfig.serverActions),\n security,\n deploymentId,\n output: userConfig.output || \"standalone\",\n distDir: userConfig.distDir || \".farm\",\n generateBuildId,\n compress: userConfig.compress ?? true,\n devIndicators: {\n buildActivity: true,\n buildActivityPosition: \"bottom-right\",\n ...userConfig.devIndicators,\n },\n serverRuntimeConfig: userConfig.serverRuntimeConfig || {},\n publicRuntimeConfig: userConfig.publicRuntimeConfig || {},\n env,\n typescript: {\n tsconfigPath: \"tsconfig.json\",\n ignoreBuildErrors: false,\n ...userConfig.typescript,\n },\n vite: typeof userConfig.vite === \"function\" ? userConfig.vite({}) : userConfig.vite || {},\n };\n\n return resolved;\n}\n\nexport async function loadConfig(\n rootDir?: string,\n configPath?: string,\n mode = process.env.NODE_ENV === \"production\" ? \"production\" : \"development\",\n loadEnvironment?: (typeof import(\"vite\"))[\"loadEnv\"],\n): Promise<FarmUserConfig | undefined> {\n const { existsSync } = await import(\"fs\");\n const loadEnv = loadEnvironment || (await import(\"vite\")).loadEnv;\n\n const root = rootDir || process.cwd();\n const loadedEnv = loadEnv(mode, root, \"\");\n for (const [key, value] of Object.entries(loadedEnv)) {\n if (process.env[key] === undefined) {\n process.env[key] = value;\n }\n }\n const searchPaths = [\n configPath,\n \"farm.config.ts\",\n \"farm.config.mts\",\n \"farm.config.js\",\n \"farm.config.mjs\",\n \"config.ts\",\n \"config.mts\",\n \"config.js\",\n \"config.mjs\",\n ].filter(Boolean) as string[];\n\n for (const relativePath of searchPaths) {\n try {\n // Use path.join for proper path construction\n const absolutePath = relativePath.startsWith(\"/\")\n ? relativePath\n : path.join(root, relativePath);\n\n // Normalize the path to handle any issues\n const normalizedPath = path.resolve(absolutePath);\n\n // Check if file exists before trying to import\n if (!existsSync(normalizedPath)) {\n continue;\n }\n\n const loadedConfig = await loadFarmConfigFile<FarmUserConfig>(normalizedPath, { root });\n return loadedConfig.root === undefined ? { ...loadedConfig, root } : loadedConfig;\n } catch (error: any) {\n const message = error instanceof Error ? error.message : String(error);\n throw new Error(`Failed to load config from ${relativePath}: ${message}`);\n }\n }\n return undefined;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkDA,OAAO,UAAU;AAgCjB,IAAM,+BAA+B,uBAAO,IAAI,4BAA4B;AA+SrE,SAAS,0BAA0B,QAAqC;AAC7E,SAAO,OAAO,4BAA4B,MAAM;AAClD;AAFgB;AAmBT,SAAS,sBAAsB,QAAyD;AAC7F,MAAI,CAAC,OAAQ,QAAO;AACpB,MAAI,WAAW,sBAAsB,WAAW,mBAAoB,QAAO;AAC3E,MAAI,WAAW,iBAAiB,WAAW,QAAS,QAAO;AAC3D,SAAO;AACT;AALgB;AAOT,SAAS,yBACd,QACsC;AACtC,UAAQ,sBAAsB,MAAM,GAAG;AAAA,IACrC,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,aAAO;AAAA,IACT;AACE,aAAO;AAAA,EACX;AACF;AAfgB;AAiBT,SAAS,yBAAyB,QAA+C;AACtF,MAAI,CAAC,OAAQ,QAAO;AACpB,MAAI,WAAW,YAAY,WAAW,cAAe,QAAO;AAC5D,MAAI,WAAW,gBAAgB,WAAW,sBAAsB,WAAW,qBAAqB;AAC9F,WAAO;AAAA,EACT;AACA,MAAI,WAAW,aAAa,WAAW,eAAgB,QAAO;AAC9D,MAAI,WAAW,cAAe,QAAO;AACrC,SAAO;AACT;AATgB;AAWT,SAAS,0BACd,QACA,QACA,SACQ;AACR,QAAM,mBAAmB,sBAAsB,MAAM,KAAK,yBAAyB,MAAM;AACzF,MAAI,qBA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AAO,EAAE;AAAA,IAC1E;AAAA,EACF;AACA,SAAO;AACT;AAnDsB;","names":[]}
|
|
@@ -16,6 +16,7 @@ import { FarmServerActionsConfig, ResolvedFarmServerActionsConfig } from './serv
|
|
|
16
16
|
import { F as FarmImageConfig, R as ResolvedFarmImageConfig } from './image-config-Duob7wER.mjs';
|
|
17
17
|
import { k as FarmI18nUserConfig, R as ResolvedFarmI18nConfig } from './types-BMxWr97v.mjs';
|
|
18
18
|
import { FarmCacheUserConfig } from './cache.mjs';
|
|
19
|
+
import { R as ResolvedFarmThemeConfig, d as FarmThemeConfig } from './types-CsR8fpgF.mjs';
|
|
19
20
|
import { F as FarmRouteRuntimeConfig, a as FarmRouteRuntime, b as FarmRouteRegions, c as FarmRouteMaxDuration } from './route-runtime-DoOHzCAD.mjs';
|
|
20
21
|
import { FarmLayoutFonts } from './font.mjs';
|
|
21
22
|
|
|
@@ -687,7 +688,7 @@ interface FarmUserConfig extends Omit<FarmConfig, "vite" | "docs" | "env" | "lay
|
|
|
687
688
|
vite?: UserConfig | ((config: UserConfig) => UserConfig);
|
|
688
689
|
[key: string]: any;
|
|
689
690
|
}
|
|
690
|
-
interface ResolvedFarmConfig extends Required<Omit<FarmUserConfig, "extends" | "plugins" | "vite" | "deploy" | "docs" | "md" | "mdx" | "migrations" | "cron" | "workflows" | "env" | "server" | "serverActions" | "devtools" | "images" | "i18n" | "auth" | "performance" | "security">> {
|
|
691
|
+
interface ResolvedFarmConfig extends Required<Omit<FarmUserConfig, "extends" | "plugins" | "vite" | "deploy" | "docs" | "md" | "mdx" | "migrations" | "cron" | "workflows" | "env" | "server" | "serverActions" | "devtools" | "images" | "i18n" | "auth" | "performance" | "security" | "theme">> {
|
|
691
692
|
/** @internal Tracks whether `context` came from user/layer config instead of the default noop. */
|
|
692
693
|
[FARM_RESOLVED_CUSTOM_CONTEXT]?: boolean;
|
|
693
694
|
extends: readonly FarmLayerEntry[];
|
|
@@ -710,6 +711,7 @@ interface ResolvedFarmConfig extends Required<Omit<FarmUserConfig, "extends" | "
|
|
|
710
711
|
auth: ResolvedFarmAuthConfig;
|
|
711
712
|
performance: ResolvedFarmPerformanceConfig;
|
|
712
713
|
security: ResolvedFarmSecurityConfig;
|
|
714
|
+
theme: ResolvedFarmThemeConfig;
|
|
713
715
|
routeRules: FarmRouteRules;
|
|
714
716
|
}
|
|
715
717
|
type FarmLayerConfig = Omit<FarmUserConfig, "root" | "outDir" | "distDir" | "deploy" | "output" | "preset" | "publicDir" | "generateBuildId" | "deploymentId">;
|
|
@@ -1670,6 +1672,8 @@ interface FarmConfig {
|
|
|
1670
1672
|
images?: FarmImageConfig;
|
|
1671
1673
|
/** Browser resource scheduling and preload budgets. */
|
|
1672
1674
|
performance?: FarmPerformanceConfig;
|
|
1675
|
+
/** Built-in light, dark, and system color-mode runtime. */
|
|
1676
|
+
theme?: FarmThemeConfig | ResolvedFarmThemeConfig | false;
|
|
1673
1677
|
i18n?: FarmI18nUserConfig | ResolvedFarmI18nConfig | false;
|
|
1674
1678
|
/** Build identifier used to detect stale clients during rolling deployments. */
|
|
1675
1679
|
deploymentId?: string;
|
|
@@ -2085,4 +2089,4 @@ interface SSGCollectionResult {
|
|
|
2085
2089
|
ssr: string[];
|
|
2086
2090
|
}
|
|
2087
2091
|
|
|
2088
|
-
export { type FarmPlugin as $, type AppRoutePattern as A, type RouteSegment as B, type ParsedRoute as C, type BuildOptions as D, type ErrorProps as E, type FarmConfig as F, type GenerateStaticParams as G, type SSGPage as H, type SSGCollectionResult as I, type FarmLayerEntry as J, type ResolvedFarmLayer as K, type LoadingProps as L, type MiddlewareProps as M, type NitroPreset as N, type FarmSourceRoot as O, type PageRouteParams as P, type ResolveFarmLayersOptions as Q, type ResolvedFarmMigrationsConfig as R, type StaticPathPrimitive as S, type FarmLayerResolution as T, resolveFarmLayers as U, getFarmSourceRoots as V, getFarmAppDirectories as W, getFarmLayerAliases as X, loadFarmConfigFile as Y, type FarmUserConfig as Z, type BundleResultPayload as _, type FarmMigrationCommand as a, type FarmPluginRouterHooks as a$, type FarmIntegration as a0, type ReadonlyMiddlewareStore as a1, type FarmMiddlewareConfig as a2, type MiddlewareModule as a3,
|
|
2092
|
+
export { type FarmPlugin as $, type AppRoutePattern as A, type RouteSegment as B, type ParsedRoute as C, type BuildOptions as D, type ErrorProps as E, type FarmConfig as F, type GenerateStaticParams as G, type SSGPage as H, type SSGCollectionResult as I, type FarmLayerEntry as J, type ResolvedFarmLayer as K, type LoadingProps as L, type MiddlewareProps as M, type NitroPreset as N, type FarmSourceRoot as O, type PageRouteParams as P, type ResolveFarmLayersOptions as Q, type ResolvedFarmMigrationsConfig as R, type StaticPathPrimitive as S, type FarmLayerResolution as T, resolveFarmLayers as U, getFarmSourceRoots as V, getFarmAppDirectories as W, getFarmLayerAliases as X, loadFarmConfigFile as Y, type FarmUserConfig as Z, type BundleResultPayload as _, type FarmMigrationCommand as a, type FarmPluginRouterHooks as a$, type FarmIntegration as a0, type ReadonlyMiddlewareStore as a1, type FarmMiddlewareConfig as a2, type MiddlewareModule as a3, type FarmMdxResolvedConfig as a4, type ResolvedFarmDevtoolsConfig as a5, type ResolvedFarmAuthConfig as a6, type ResolvedFarmPerformanceConfig as a7, type ResolvedFarmSecurityConfig as a8, manageFarmDocumentPreloads as a9, type FarmAuthConfig as aA, type FarmAuthDatabaseConfig as aB, type FarmAuthEmailAndPasswordConfig as aC, type FarmAuthSessionConfig as aD, type FarmAuthUserConfig as aE, type PluginRequestContext as aF, type FarmPluginContext as aG, type FarmPluginIntegrationContext as aH, type FarmPluginLifecycle as aI, type FarmRequestPluginContext as aJ, type FarmRequestStore as aK, type FarmPluginRuntimeKind as aL, type FarmPluginRouteRuntimePayload as aM, type FarmPluginSetupContext as aN, type FarmPluginStateContext as aO, type FarmPluginRuntimeBaseEvent as aP, type FarmPluginRuntimeContextEvent as aQ, type FarmPluginRuntimeBeforeEvent as aR, type FarmPluginRuntimeAfterEvent as aS, type FarmPluginRuntimeErrorEvent as aT, type FarmPluginRuntimeStartEvent as aU, type FarmPluginRuntimeCloseEvent as aV, type FarmPluginRuntimeHooks as aW, type FarmPluginRuntimeRequestOptions as aX, type FarmPluginRuntimeRequestHandler as aY, type FarmPluginRuntimeSession as aZ, type FarmPluginDiscoveredRoute as a_, manageFarmHtmlPreloads as aa, manageFarmLinkHeaderPreloads as ab, reportFarmPreloadWarnings as ac, type OpenAPIConfig as ad, definePlugin as ae, FarmRuntimeShutdownError as af, PluginManager as ag, resolveConfig as ah, loadConfig as ai, resolveDeployConfig as aj, resolveMigrationsConfig as ak, resolveDeployOutputPath as al, normalizeDeployTarget as am, getDeployTargetForPreset as an, getPresetForDeployTarget as ao, type FarmLayerConfig as ap, type FarmPerformanceConfig as aq, type FarmPreloadMode as ar, type FarmPreloadUserConfig as as, type ResolvedFarmPreloadConfig as at, type FarmCspConfig as au, type FarmCspDirectives as av, type FarmCspDirectiveValue as aw, type FarmCspOptions as ax, type FarmSecurityConfig as ay, type ResolvedFarmCspConfig as az, type FarmMigrationsConfig as b, type FarmIntegrationDocumentNavigation as b$, type FarmPluginRenderHooks as b0, type FarmPluginBuildHooks as b1, type FarmPluginDevHooks as b2, type FarmPluginClientConfig as b3, type RouteDiscoveredPayload as b4, type RoutesGeneratedPayload as b5, type MiddlewareDiscoveredPayload as b6, type APIRouteDiscoveredPayload as b7, type RouteMatchPayload as b8, type RouteMatchResultPayload as b9, type FarmIntegrationValidationErrorLike as bA, type FarmIntegrationValidationResult as bB, type FarmIntegrationStandardValidationResult as bC, type FarmIntegrationInputSchema as bD, type FarmIntegrationRouteInputSchemas as bE, type FarmIntegrationRequestContextStore as bF, FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY as bG, type FarmIntegrationRouteDb as bH, type FarmIntegrationRouteStorageArgs as bI, type FarmIntegrationRouteArgs as bJ, type FarmIntegrationConfigContext as bK, type FarmIntegrationConfigDefinition as bL, type FarmIntegrationConfigInput as bM, type FarmIntegrationLifecycleLogLevel as bN, type FarmIntegrationLifecycleLogger as bO, type FarmIntegrationLifecycleContext as bP, type FarmIntegrationLifecycleHook as bQ, type FarmIntegrationData as bR, type FarmIntegrationHandlerContext as bS, type FarmIntegrationRouteHookContext as bT, type FarmIntegrationRouteHook as bU, type FarmIntegrationRoute as bV, type FarmTypedIntegrationRoute as bW, type FarmIntegrationRouteMiddleware as bX, type FarmIntegrationMiddleware as bY, type FarmIntegrationProviderProps as bZ, type FarmIntegrationProvider as b_, type RenderLifecyclePayload as ba, type APIHandlerLifecyclePayload as bb, type ErrorLifecyclePayload as bc, type HMRUpdatePayload as bd, type BundleLifecyclePayload as be, type NitroBuildLifecyclePayload as bf, type ShutdownPayload as bg, type ResolvedFarmConfig as bh, type RedirectConfig as bi, type HeaderConfig as bj, type RewriteConfig as bk, type ImageConfig as bl, type I18nConfig as bm, type MiddlewareConfig as bn, type FarmDeployConfig as bo, type ResolvedFarmDeployConfig as bp, type FarmDeployTarget as bq, type FarmIntegrationCategory as br, type FarmIntegrationSlot as bs, type FarmIntegrationRouteParamValue as bt, type FarmIntegrationRouteParams as bu, type FarmIntegrationRouteMethod as bv, type FarmIntegrationRouteInputSource as bw, type FarmIntegrationValidationPathSegment as bx, type FarmIntegrationRouteInput as by, type FarmIntegrationValidationIssue as bz, type FarmMigrationsUserConfig as c, type MemoryRateLimitStorageOptions as c$, type FarmIntegrationSchemaFieldType as c0, type FarmIntegrationSchemaReference as c1, type FarmIntegrationSchemaField as c2, type FarmIntegrationSchemaConstraint as c3, type FarmIntegrationSchemaModel as c4, type FarmIntegrationSchemaModelExtension as c5, type FarmIntegrationSchemaModelOverride as c6, type FarmIntegrationSchema as c7, defineIntegrationSchema as c8, type FarmIntegrationLogPhase as c9, matchIntegrationRoute as cA, matchRegisteredIntegrationRoute as cB, getRegisteredIntegrationAPIManifest as cC, dispatchIntegrationRequest as cD, type FarmIntegrationOrmSchema as cE, type FarmIntegrationOrmClient as cF, type InferFarmIntegrationOrmField as cG, type InferFarmIntegrationOrmFields as cH, type InferFarmIntegrationOrmSchema as cI, type InferFarmIntegrationOrmClient as cJ, type CreateIntegrationOrmOptions as cK, createIntegrationOrm as cL, resolveIntegrationOrmRuntimeClient as cM, farmIntegrationSchemaToOrmSchema as cN, type IntegrationOrmModelNames as cO, type MiddlewareContext as cP, type MiddlewareFunction as cQ, type RequestMiddleware as cR, type RequestMiddlewareContext as cS, type MiddlewareStore as cT, type MiddlewareChain as cU, type CookieJar as cV, type CookieOptions as cW, type RateLimitConfig as cX, type RateLimitIncrementResult as cY, type RateLimitStorage as cZ, type RateLimitStatus as c_, type FarmIntegrationLogEvent as ca, type FarmIntegrationLogger as cb, type FarmIntegrationPluginOwner as cc, type FarmIntegrationContributedPlugin as cd, type FarmIntegrationsUserConfig as ce, getFarmIntegrationPluginServerRuntime as cf, getFarmIntegrationPluginOwner as cg, type FarmIntegrationRouteFactory as ch, type FarmIntegrationRoutesFactoryContext as ci, type FarmIntegrationRoutesFactory as cj, type FarmIntegrationEndpointValue as ck, type FarmIntegrationEndpoints as cl, type FarmIntegrationEndpointsFactoryContext as cm, type FarmIntegrationEndpointsFactory as cn, createIntegrationRoute as co, integrationRoute as cp, type DefinedIntegration as cq, defineIntegration as cr, isFarmIntegration as cs, resolveIntegrationPlugins as ct, getIntegrationProviders as cu, getIntegrationDocumentNavigationMatchers as cv, getIntegrationSchemas as cw, getRegisteredIntegrationRuntime as cx, getRegisteredIntegrations as cy, getRegisteredIntegrationSchemas as cz, defineConfig as d, type NextFunction as d0, type MiddlewareResult as d1, type FarmRouteRuleRenderMode as d2, type FarmRouteRuleRedirect as d3, type FarmRouteRuleCors as d4, type FarmRouteRule as d5, type FarmRouteRules as d6, normalizeRouteRules as d7, routeRulesToRedirects as d8, routeRulesToHeaders as d9, routeRulesToNitroRouteRules as da, type FarmMdxComponent as db, type FarmMdxComponents as dc, type FarmMdxUserConfig as dd, type FarmMarkdownPageSource as de, type FarmMarkdownPageModuleInput as df, resolveMdxConfig as dg, isFarmMarkdownPageFile as dh, normalizeFarmMarkdownRoutePath as di, parseMarkdownFrontmatter as dj, titleFromMarkdown as dk, createMarkdownMetadata as dl, createFarmMarkdownRouteModule as dm, createFarmMarkdownRouteModuleFromFile as dn, loadFarmMdxComponents as dp, createFarmMarkdownSourceResponse as dq, DEFAULT_FARM_DEVTOOLS_SHORTCUT as dr, FARM_DEVTOOLS_PATH as ds, FARM_DEVTOOLS_LAUNCH_PARAM as dt, type FarmDevtoolsConfig as du, type FarmDevtoolsUserConfig as dv, resolveFarmDevtoolsConfig as dw, type MiddlewareConfig$1 as dx, farmI18nClientBridgePlugin as dy, rewriteEarlySsrRelativeImports as dz, type FarmContextFactoryInput as e, farmPlugin as f, type FarmContextFactory as g, type FarmAppContext as h, type PluginContextProps as i, type PageProps as j, type PagePropsWithMiddleware as k, type LayoutProps as l, type MetadataProps as m, type LayoutMetadataProps as n, type Page as o, type Layout as p, type Loading as q, type ErrorBoundary as r, type RouteModule as s, type StaticPathParams as t, type StaticRouteParams as u, type LayoutModule as v, type Metadata as w, type FarmRequest as x, type FarmResponse as y, type ServerAction as z };
|
|
@@ -16,6 +16,7 @@ import { FarmServerActionsConfig, ResolvedFarmServerActionsConfig } from './serv
|
|
|
16
16
|
import { F as FarmImageConfig, R as ResolvedFarmImageConfig } from './image-config-Duob7wER.js';
|
|
17
17
|
import { k as FarmI18nUserConfig, R as ResolvedFarmI18nConfig } from './types-BMxWr97v.js';
|
|
18
18
|
import { FarmCacheUserConfig } from './cache.js';
|
|
19
|
+
import { R as ResolvedFarmThemeConfig, d as FarmThemeConfig } from './types-CsR8fpgF.js';
|
|
19
20
|
import { F as FarmRouteRuntimeConfig, a as FarmRouteRuntime, b as FarmRouteRegions, c as FarmRouteMaxDuration } from './route-runtime-DoOHzCAD.js';
|
|
20
21
|
import { FarmLayoutFonts } from './font.js';
|
|
21
22
|
|
|
@@ -687,7 +688,7 @@ interface FarmUserConfig extends Omit<FarmConfig, "vite" | "docs" | "env" | "lay
|
|
|
687
688
|
vite?: UserConfig | ((config: UserConfig) => UserConfig);
|
|
688
689
|
[key: string]: any;
|
|
689
690
|
}
|
|
690
|
-
interface ResolvedFarmConfig extends Required<Omit<FarmUserConfig, "extends" | "plugins" | "vite" | "deploy" | "docs" | "md" | "mdx" | "migrations" | "cron" | "workflows" | "env" | "server" | "serverActions" | "devtools" | "images" | "i18n" | "auth" | "performance" | "security">> {
|
|
691
|
+
interface ResolvedFarmConfig extends Required<Omit<FarmUserConfig, "extends" | "plugins" | "vite" | "deploy" | "docs" | "md" | "mdx" | "migrations" | "cron" | "workflows" | "env" | "server" | "serverActions" | "devtools" | "images" | "i18n" | "auth" | "performance" | "security" | "theme">> {
|
|
691
692
|
/** @internal Tracks whether `context` came from user/layer config instead of the default noop. */
|
|
692
693
|
[FARM_RESOLVED_CUSTOM_CONTEXT]?: boolean;
|
|
693
694
|
extends: readonly FarmLayerEntry[];
|
|
@@ -710,6 +711,7 @@ interface ResolvedFarmConfig extends Required<Omit<FarmUserConfig, "extends" | "
|
|
|
710
711
|
auth: ResolvedFarmAuthConfig;
|
|
711
712
|
performance: ResolvedFarmPerformanceConfig;
|
|
712
713
|
security: ResolvedFarmSecurityConfig;
|
|
714
|
+
theme: ResolvedFarmThemeConfig;
|
|
713
715
|
routeRules: FarmRouteRules;
|
|
714
716
|
}
|
|
715
717
|
type FarmLayerConfig = Omit<FarmUserConfig, "root" | "outDir" | "distDir" | "deploy" | "output" | "preset" | "publicDir" | "generateBuildId" | "deploymentId">;
|
|
@@ -1670,6 +1672,8 @@ interface FarmConfig {
|
|
|
1670
1672
|
images?: FarmImageConfig;
|
|
1671
1673
|
/** Browser resource scheduling and preload budgets. */
|
|
1672
1674
|
performance?: FarmPerformanceConfig;
|
|
1675
|
+
/** Built-in light, dark, and system color-mode runtime. */
|
|
1676
|
+
theme?: FarmThemeConfig | ResolvedFarmThemeConfig | false;
|
|
1673
1677
|
i18n?: FarmI18nUserConfig | ResolvedFarmI18nConfig | false;
|
|
1674
1678
|
/** Build identifier used to detect stale clients during rolling deployments. */
|
|
1675
1679
|
deploymentId?: string;
|
|
@@ -2085,4 +2089,4 @@ interface SSGCollectionResult {
|
|
|
2085
2089
|
ssr: string[];
|
|
2086
2090
|
}
|
|
2087
2091
|
|
|
2088
|
-
export { type FarmPlugin as $, type AppRoutePattern as A, type RouteSegment as B, type ParsedRoute as C, type BuildOptions as D, type ErrorProps as E, type FarmConfig as F, type GenerateStaticParams as G, type SSGPage as H, type SSGCollectionResult as I, type FarmLayerEntry as J, type ResolvedFarmLayer as K, type LoadingProps as L, type MiddlewareProps as M, type NitroPreset as N, type FarmSourceRoot as O, type PageRouteParams as P, type ResolveFarmLayersOptions as Q, type ResolvedFarmMigrationsConfig as R, type StaticPathPrimitive as S, type FarmLayerResolution as T, resolveFarmLayers as U, getFarmSourceRoots as V, getFarmAppDirectories as W, getFarmLayerAliases as X, loadFarmConfigFile as Y, type FarmUserConfig as Z, type BundleResultPayload as _, type FarmMigrationCommand as a, type FarmPluginRouterHooks as a$, type FarmIntegration as a0, type ReadonlyMiddlewareStore as a1, type FarmMiddlewareConfig as a2, type MiddlewareModule as a3,
|
|
2092
|
+
export { type FarmPlugin as $, type AppRoutePattern as A, type RouteSegment as B, type ParsedRoute as C, type BuildOptions as D, type ErrorProps as E, type FarmConfig as F, type GenerateStaticParams as G, type SSGPage as H, type SSGCollectionResult as I, type FarmLayerEntry as J, type ResolvedFarmLayer as K, type LoadingProps as L, type MiddlewareProps as M, type NitroPreset as N, type FarmSourceRoot as O, type PageRouteParams as P, type ResolveFarmLayersOptions as Q, type ResolvedFarmMigrationsConfig as R, type StaticPathPrimitive as S, type FarmLayerResolution as T, resolveFarmLayers as U, getFarmSourceRoots as V, getFarmAppDirectories as W, getFarmLayerAliases as X, loadFarmConfigFile as Y, type FarmUserConfig as Z, type BundleResultPayload as _, type FarmMigrationCommand as a, type FarmPluginRouterHooks as a$, type FarmIntegration as a0, type ReadonlyMiddlewareStore as a1, type FarmMiddlewareConfig as a2, type MiddlewareModule as a3, type FarmMdxResolvedConfig as a4, type ResolvedFarmDevtoolsConfig as a5, type ResolvedFarmAuthConfig as a6, type ResolvedFarmPerformanceConfig as a7, type ResolvedFarmSecurityConfig as a8, manageFarmDocumentPreloads as a9, type FarmAuthConfig as aA, type FarmAuthDatabaseConfig as aB, type FarmAuthEmailAndPasswordConfig as aC, type FarmAuthSessionConfig as aD, type FarmAuthUserConfig as aE, type PluginRequestContext as aF, type FarmPluginContext as aG, type FarmPluginIntegrationContext as aH, type FarmPluginLifecycle as aI, type FarmRequestPluginContext as aJ, type FarmRequestStore as aK, type FarmPluginRuntimeKind as aL, type FarmPluginRouteRuntimePayload as aM, type FarmPluginSetupContext as aN, type FarmPluginStateContext as aO, type FarmPluginRuntimeBaseEvent as aP, type FarmPluginRuntimeContextEvent as aQ, type FarmPluginRuntimeBeforeEvent as aR, type FarmPluginRuntimeAfterEvent as aS, type FarmPluginRuntimeErrorEvent as aT, type FarmPluginRuntimeStartEvent as aU, type FarmPluginRuntimeCloseEvent as aV, type FarmPluginRuntimeHooks as aW, type FarmPluginRuntimeRequestOptions as aX, type FarmPluginRuntimeRequestHandler as aY, type FarmPluginRuntimeSession as aZ, type FarmPluginDiscoveredRoute as a_, manageFarmHtmlPreloads as aa, manageFarmLinkHeaderPreloads as ab, reportFarmPreloadWarnings as ac, type OpenAPIConfig as ad, definePlugin as ae, FarmRuntimeShutdownError as af, PluginManager as ag, resolveConfig as ah, loadConfig as ai, resolveDeployConfig as aj, resolveMigrationsConfig as ak, resolveDeployOutputPath as al, normalizeDeployTarget as am, getDeployTargetForPreset as an, getPresetForDeployTarget as ao, type FarmLayerConfig as ap, type FarmPerformanceConfig as aq, type FarmPreloadMode as ar, type FarmPreloadUserConfig as as, type ResolvedFarmPreloadConfig as at, type FarmCspConfig as au, type FarmCspDirectives as av, type FarmCspDirectiveValue as aw, type FarmCspOptions as ax, type FarmSecurityConfig as ay, type ResolvedFarmCspConfig as az, type FarmMigrationsConfig as b, type FarmIntegrationDocumentNavigation as b$, type FarmPluginRenderHooks as b0, type FarmPluginBuildHooks as b1, type FarmPluginDevHooks as b2, type FarmPluginClientConfig as b3, type RouteDiscoveredPayload as b4, type RoutesGeneratedPayload as b5, type MiddlewareDiscoveredPayload as b6, type APIRouteDiscoveredPayload as b7, type RouteMatchPayload as b8, type RouteMatchResultPayload as b9, type FarmIntegrationValidationErrorLike as bA, type FarmIntegrationValidationResult as bB, type FarmIntegrationStandardValidationResult as bC, type FarmIntegrationInputSchema as bD, type FarmIntegrationRouteInputSchemas as bE, type FarmIntegrationRequestContextStore as bF, FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY as bG, type FarmIntegrationRouteDb as bH, type FarmIntegrationRouteStorageArgs as bI, type FarmIntegrationRouteArgs as bJ, type FarmIntegrationConfigContext as bK, type FarmIntegrationConfigDefinition as bL, type FarmIntegrationConfigInput as bM, type FarmIntegrationLifecycleLogLevel as bN, type FarmIntegrationLifecycleLogger as bO, type FarmIntegrationLifecycleContext as bP, type FarmIntegrationLifecycleHook as bQ, type FarmIntegrationData as bR, type FarmIntegrationHandlerContext as bS, type FarmIntegrationRouteHookContext as bT, type FarmIntegrationRouteHook as bU, type FarmIntegrationRoute as bV, type FarmTypedIntegrationRoute as bW, type FarmIntegrationRouteMiddleware as bX, type FarmIntegrationMiddleware as bY, type FarmIntegrationProviderProps as bZ, type FarmIntegrationProvider as b_, type RenderLifecyclePayload as ba, type APIHandlerLifecyclePayload as bb, type ErrorLifecyclePayload as bc, type HMRUpdatePayload as bd, type BundleLifecyclePayload as be, type NitroBuildLifecyclePayload as bf, type ShutdownPayload as bg, type ResolvedFarmConfig as bh, type RedirectConfig as bi, type HeaderConfig as bj, type RewriteConfig as bk, type ImageConfig as bl, type I18nConfig as bm, type MiddlewareConfig as bn, type FarmDeployConfig as bo, type ResolvedFarmDeployConfig as bp, type FarmDeployTarget as bq, type FarmIntegrationCategory as br, type FarmIntegrationSlot as bs, type FarmIntegrationRouteParamValue as bt, type FarmIntegrationRouteParams as bu, type FarmIntegrationRouteMethod as bv, type FarmIntegrationRouteInputSource as bw, type FarmIntegrationValidationPathSegment as bx, type FarmIntegrationRouteInput as by, type FarmIntegrationValidationIssue as bz, type FarmMigrationsUserConfig as c, type MemoryRateLimitStorageOptions as c$, type FarmIntegrationSchemaFieldType as c0, type FarmIntegrationSchemaReference as c1, type FarmIntegrationSchemaField as c2, type FarmIntegrationSchemaConstraint as c3, type FarmIntegrationSchemaModel as c4, type FarmIntegrationSchemaModelExtension as c5, type FarmIntegrationSchemaModelOverride as c6, type FarmIntegrationSchema as c7, defineIntegrationSchema as c8, type FarmIntegrationLogPhase as c9, matchIntegrationRoute as cA, matchRegisteredIntegrationRoute as cB, getRegisteredIntegrationAPIManifest as cC, dispatchIntegrationRequest as cD, type FarmIntegrationOrmSchema as cE, type FarmIntegrationOrmClient as cF, type InferFarmIntegrationOrmField as cG, type InferFarmIntegrationOrmFields as cH, type InferFarmIntegrationOrmSchema as cI, type InferFarmIntegrationOrmClient as cJ, type CreateIntegrationOrmOptions as cK, createIntegrationOrm as cL, resolveIntegrationOrmRuntimeClient as cM, farmIntegrationSchemaToOrmSchema as cN, type IntegrationOrmModelNames as cO, type MiddlewareContext as cP, type MiddlewareFunction as cQ, type RequestMiddleware as cR, type RequestMiddlewareContext as cS, type MiddlewareStore as cT, type MiddlewareChain as cU, type CookieJar as cV, type CookieOptions as cW, type RateLimitConfig as cX, type RateLimitIncrementResult as cY, type RateLimitStorage as cZ, type RateLimitStatus as c_, type FarmIntegrationLogEvent as ca, type FarmIntegrationLogger as cb, type FarmIntegrationPluginOwner as cc, type FarmIntegrationContributedPlugin as cd, type FarmIntegrationsUserConfig as ce, getFarmIntegrationPluginServerRuntime as cf, getFarmIntegrationPluginOwner as cg, type FarmIntegrationRouteFactory as ch, type FarmIntegrationRoutesFactoryContext as ci, type FarmIntegrationRoutesFactory as cj, type FarmIntegrationEndpointValue as ck, type FarmIntegrationEndpoints as cl, type FarmIntegrationEndpointsFactoryContext as cm, type FarmIntegrationEndpointsFactory as cn, createIntegrationRoute as co, integrationRoute as cp, type DefinedIntegration as cq, defineIntegration as cr, isFarmIntegration as cs, resolveIntegrationPlugins as ct, getIntegrationProviders as cu, getIntegrationDocumentNavigationMatchers as cv, getIntegrationSchemas as cw, getRegisteredIntegrationRuntime as cx, getRegisteredIntegrations as cy, getRegisteredIntegrationSchemas as cz, defineConfig as d, type NextFunction as d0, type MiddlewareResult as d1, type FarmRouteRuleRenderMode as d2, type FarmRouteRuleRedirect as d3, type FarmRouteRuleCors as d4, type FarmRouteRule as d5, type FarmRouteRules as d6, normalizeRouteRules as d7, routeRulesToRedirects as d8, routeRulesToHeaders as d9, routeRulesToNitroRouteRules as da, type FarmMdxComponent as db, type FarmMdxComponents as dc, type FarmMdxUserConfig as dd, type FarmMarkdownPageSource as de, type FarmMarkdownPageModuleInput as df, resolveMdxConfig as dg, isFarmMarkdownPageFile as dh, normalizeFarmMarkdownRoutePath as di, parseMarkdownFrontmatter as dj, titleFromMarkdown as dk, createMarkdownMetadata as dl, createFarmMarkdownRouteModule as dm, createFarmMarkdownRouteModuleFromFile as dn, loadFarmMdxComponents as dp, createFarmMarkdownSourceResponse as dq, DEFAULT_FARM_DEVTOOLS_SHORTCUT as dr, FARM_DEVTOOLS_PATH as ds, FARM_DEVTOOLS_LAUNCH_PARAM as dt, type FarmDevtoolsConfig as du, type FarmDevtoolsUserConfig as dv, resolveFarmDevtoolsConfig as dw, type MiddlewareConfig$1 as dx, farmI18nClientBridgePlugin as dy, rewriteEarlySsrRelativeImports as dz, type FarmContextFactoryInput as e, farmPlugin as f, type FarmContextFactory as g, type FarmAppContext as h, type PluginContextProps as i, type PageProps as j, type PagePropsWithMiddleware as k, type LayoutProps as l, type MetadataProps as m, type LayoutMetadataProps as n, type Page as o, type Layout as p, type Loading as q, type ErrorBoundary as r, type RouteModule as s, type StaticPathParams as t, type StaticRouteParams as u, type LayoutModule as v, type Metadata as w, type FarmRequest as x, type FarmResponse as y, type ServerAction as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { a as FarmClientHydrationCompleteEvent, b as FarmClientHydrationEvent, d as FarmClientHydrationMode, e as FarmClientHydrationSession, f as FarmClientLocation, g as FarmClientNavigationAction, h as FarmClientNavigationErrorEvent, i as FarmClientNavigationEvent, j as FarmClientNavigationLoadedEvent, k as FarmClientNavigationResolvedEvent, l as FarmClientNavigationSession, m as FarmClientPerformanceEvent, n as FarmClientPlugin, o as FarmClientPluginCloseEvent, p as FarmClientPluginEnforce, q as FarmClientPluginErrorEvent, r as FarmClientPluginErrorPhase, F as FarmClientPluginManager, s as FarmClientPluginManagerOptions, t as FarmClientPluginMetadata, u as FarmClientPluginRegistration, v as FarmClientPluginRouter, w as FarmClientPluginSetupEvent, x as FarmClientPluginStateEvent, c as createClientPluginManager } from './plugin-BJDf43dc.mjs';
|
|
2
|
-
export { $ as FarmPlugin, aG as FarmPluginContext, aJ as FarmRequestPluginContext, aK as FarmRequestStore } from './client-plugins-
|
|
2
|
+
export { $ as FarmPlugin, aG as FarmPluginContext, aJ as FarmRequestPluginContext, aK as FarmRequestStore } from './client-plugins-CCilIb_G.mjs';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'http';
|
|
5
5
|
import './types-D1A6-XvH.mjs';
|
|
@@ -20,5 +20,6 @@ import './server-fn-error-DDh14a0V.mjs';
|
|
|
20
20
|
import './image-config-Duob7wER.mjs';
|
|
21
21
|
import './types-BMxWr97v.mjs';
|
|
22
22
|
import './cache.mjs';
|
|
23
|
+
import './types-CsR8fpgF.mjs';
|
|
23
24
|
import './route-runtime-DoOHzCAD.mjs';
|
|
24
25
|
import './font.mjs';
|
package/dist/client-plugins.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { a as FarmClientHydrationCompleteEvent, b as FarmClientHydrationEvent, d as FarmClientHydrationMode, e as FarmClientHydrationSession, f as FarmClientLocation, g as FarmClientNavigationAction, h as FarmClientNavigationErrorEvent, i as FarmClientNavigationEvent, j as FarmClientNavigationLoadedEvent, k as FarmClientNavigationResolvedEvent, l as FarmClientNavigationSession, m as FarmClientPerformanceEvent, n as FarmClientPlugin, o as FarmClientPluginCloseEvent, p as FarmClientPluginEnforce, q as FarmClientPluginErrorEvent, r as FarmClientPluginErrorPhase, F as FarmClientPluginManager, s as FarmClientPluginManagerOptions, t as FarmClientPluginMetadata, u as FarmClientPluginRegistration, v as FarmClientPluginRouter, w as FarmClientPluginSetupEvent, x as FarmClientPluginStateEvent, c as createClientPluginManager } from './plugin-BJDf43dc.js';
|
|
2
|
-
export { $ as FarmPlugin, aG as FarmPluginContext, aJ as FarmRequestPluginContext, aK as FarmRequestStore } from './client-plugins-
|
|
2
|
+
export { $ as FarmPlugin, aG as FarmPluginContext, aJ as FarmRequestPluginContext, aK as FarmRequestStore } from './client-plugins-DuuleQKk.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'http';
|
|
5
5
|
import './types-D1A6-XvH.js';
|
|
@@ -20,5 +20,6 @@ import './server-fn-error-DDh14a0V.js';
|
|
|
20
20
|
import './image-config-Duob7wER.js';
|
|
21
21
|
import './types-BMxWr97v.js';
|
|
22
22
|
import './cache.js';
|
|
23
|
+
import './types-CsR8fpgF.js';
|
|
23
24
|
import './route-runtime-DoOHzCAD.js';
|
|
24
25
|
import './font.js';
|