alchemy 2.0.0-beta.78 → 2.0.0-beta.79

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 (106) hide show
  1. package/bin/cli.js +25 -65
  2. package/bin/exec.js +1 -1
  3. package/bin/tsconfig.json +5 -0
  4. package/lib/Cloudflare/Workers/InferEnv.d.ts +3 -1
  5. package/lib/Cloudflare/Workers/InferEnv.d.ts.map +1 -1
  6. package/lib/Cloudflare/Workers/Worker.d.ts +5 -2
  7. package/lib/Cloudflare/Workers/Worker.d.ts.map +1 -1
  8. package/lib/Cloudflare/Workers/Worker.js.map +1 -1
  9. package/lib/Prisma/Providers.d.ts +4 -1
  10. package/lib/Prisma/Providers.d.ts.map +1 -1
  11. package/lib/Prisma/Providers.js +7 -2
  12. package/lib/Prisma/Providers.js.map +1 -1
  13. package/lib/Prisma/Website/Artifact.d.ts +52 -0
  14. package/lib/Prisma/Website/Artifact.d.ts.map +1 -0
  15. package/lib/Prisma/Website/Artifact.js +285 -0
  16. package/lib/Prisma/Website/Artifact.js.map +1 -0
  17. package/lib/Prisma/Website/Astro.d.ts +62 -0
  18. package/lib/Prisma/Website/Astro.d.ts.map +1 -0
  19. package/lib/Prisma/Website/Astro.js +50 -0
  20. package/lib/Prisma/Website/Astro.js.map +1 -0
  21. package/lib/Prisma/Website/Foldkit.d.ts +30 -0
  22. package/lib/Prisma/Website/Foldkit.d.ts.map +1 -0
  23. package/lib/Prisma/Website/Foldkit.js +30 -0
  24. package/lib/Prisma/Website/Foldkit.js.map +1 -0
  25. package/lib/Prisma/Website/FrameworkSite.d.ts +82 -0
  26. package/lib/Prisma/Website/FrameworkSite.d.ts.map +1 -0
  27. package/lib/Prisma/Website/FrameworkSite.js +96 -0
  28. package/lib/Prisma/Website/FrameworkSite.js.map +1 -0
  29. package/lib/Prisma/Website/Nextjs.d.ts +35 -0
  30. package/lib/Prisma/Website/Nextjs.d.ts.map +1 -0
  31. package/lib/Prisma/Website/Nextjs.js +37 -0
  32. package/lib/Prisma/Website/Nextjs.js.map +1 -0
  33. package/lib/Prisma/Website/Nuxt.d.ts +37 -0
  34. package/lib/Prisma/Website/Nuxt.d.ts.map +1 -0
  35. package/lib/Prisma/Website/Nuxt.js +37 -0
  36. package/lib/Prisma/Website/Nuxt.js.map +1 -0
  37. package/lib/Prisma/Website/Octane.d.ts +35 -0
  38. package/lib/Prisma/Website/Octane.d.ts.map +1 -0
  39. package/lib/Prisma/Website/Octane.js +36 -0
  40. package/lib/Prisma/Website/Octane.js.map +1 -0
  41. package/lib/Prisma/Website/ReactRouter.d.ts +35 -0
  42. package/lib/Prisma/Website/ReactRouter.d.ts.map +1 -0
  43. package/lib/Prisma/Website/ReactRouter.js +36 -0
  44. package/lib/Prisma/Website/ReactRouter.js.map +1 -0
  45. package/lib/Prisma/Website/SolidStart.d.ts +37 -0
  46. package/lib/Prisma/Website/SolidStart.d.ts.map +1 -0
  47. package/lib/Prisma/Website/SolidStart.js +37 -0
  48. package/lib/Prisma/Website/SolidStart.js.map +1 -0
  49. package/lib/Prisma/Website/StaticSite.d.ts +57 -0
  50. package/lib/Prisma/Website/StaticSite.d.ts.map +1 -0
  51. package/lib/Prisma/Website/StaticSite.js +118 -0
  52. package/lib/Prisma/Website/StaticSite.js.map +1 -0
  53. package/lib/Prisma/Website/SvelteKit.d.ts +37 -0
  54. package/lib/Prisma/Website/SvelteKit.d.ts.map +1 -0
  55. package/lib/Prisma/Website/SvelteKit.js +37 -0
  56. package/lib/Prisma/Website/SvelteKit.js.map +1 -0
  57. package/lib/Prisma/Website/TanStackStart.d.ts +35 -0
  58. package/lib/Prisma/Website/TanStackStart.d.ts.map +1 -0
  59. package/lib/Prisma/Website/TanStackStart.js +36 -0
  60. package/lib/Prisma/Website/TanStackStart.js.map +1 -0
  61. package/lib/Prisma/Website/Vite.d.ts +42 -0
  62. package/lib/Prisma/Website/Vite.d.ts.map +1 -0
  63. package/lib/Prisma/Website/Vite.js +38 -0
  64. package/lib/Prisma/Website/Vite.js.map +1 -0
  65. package/lib/Prisma/Website/Vocs.d.ts +37 -0
  66. package/lib/Prisma/Website/Vocs.d.ts.map +1 -0
  67. package/lib/Prisma/Website/Vocs.js +38 -0
  68. package/lib/Prisma/Website/Vocs.js.map +1 -0
  69. package/lib/Prisma/Website/Waku.d.ts +44 -0
  70. package/lib/Prisma/Website/Waku.d.ts.map +1 -0
  71. package/lib/Prisma/Website/Waku.js +38 -0
  72. package/lib/Prisma/Website/Waku.js.map +1 -0
  73. package/lib/Prisma/Website/index.d.ts +15 -0
  74. package/lib/Prisma/Website/index.d.ts.map +1 -0
  75. package/lib/Prisma/Website/index.js +14 -0
  76. package/lib/Prisma/Website/index.js.map +1 -0
  77. package/lib/Prisma/index.d.ts +1 -0
  78. package/lib/Prisma/index.d.ts.map +1 -1
  79. package/lib/Prisma/index.js +1 -0
  80. package/lib/Prisma/index.js.map +1 -1
  81. package/lib/State/HttpStateApi.d.ts +11 -11
  82. package/lib/Website/Server.d.ts.map +1 -1
  83. package/lib/Website/Server.js +18 -8
  84. package/lib/Website/Server.js.map +1 -1
  85. package/package.json +6 -6
  86. package/src/Cloudflare/Workers/InferEnv.ts +5 -3
  87. package/src/Cloudflare/Workers/Worker.ts +25 -5
  88. package/src/Prisma/Providers.ts +11 -0
  89. package/src/Prisma/Website/Artifact.ts +429 -0
  90. package/src/Prisma/Website/Astro.ts +72 -0
  91. package/src/Prisma/Website/Foldkit.ts +34 -0
  92. package/src/Prisma/Website/FrameworkSite.ts +204 -0
  93. package/src/Prisma/Website/Nextjs.ts +41 -0
  94. package/src/Prisma/Website/Nuxt.ts +44 -0
  95. package/src/Prisma/Website/Octane.ts +40 -0
  96. package/src/Prisma/Website/ReactRouter.ts +40 -0
  97. package/src/Prisma/Website/SolidStart.ts +44 -0
  98. package/src/Prisma/Website/StaticSite.ts +149 -0
  99. package/src/Prisma/Website/SvelteKit.ts +44 -0
  100. package/src/Prisma/Website/TanStackStart.ts +40 -0
  101. package/src/Prisma/Website/Vite.ts +50 -0
  102. package/src/Prisma/Website/Vocs.ts +45 -0
  103. package/src/Prisma/Website/Waku.ts +52 -0
  104. package/src/Prisma/Website/index.ts +19 -0
  105. package/src/Prisma/index.ts +1 -0
  106. package/src/Website/Server.ts +21 -8
@@ -0,0 +1,96 @@
1
+ import * as Effect from "effect/Effect";
2
+ import * as Output from "../../Output.js";
3
+ import * as Redacted from "effect/Redacted";
4
+ import { AlchemyContext } from "../../AlchemyContext.js";
5
+ import { ProviderModePolicy } from "../../ProviderMode.js";
6
+ import { Server } from "../../Website/Server.js";
7
+ import { Compute } from "../Compute.js";
8
+ import { CustomDomain } from "../CustomDomain.js";
9
+ import { Project } from "../Project.js";
10
+ import { WebsiteArtifact } from "./Artifact.js";
11
+ /** Resolve build-time secrets without changing the redacted runtime env props. */
12
+ export const websiteBuildEnv = (env) => env === undefined
13
+ ? undefined
14
+ : Object.fromEntries(Object.entries(env).map(([key, value]) => [
15
+ key,
16
+ Redacted.isRedacted(value) ? Redacted.value(value) : value,
17
+ ]));
18
+ /** Shared live half, called only after a build resource has been declared. */
19
+ export const deployWebsite = Effect.fn(function* (props, artifact) {
20
+ const project = Effect.isEffect(props.project)
21
+ ? yield* props.project
22
+ : (props.project ??
23
+ (yield* Project("Project", {
24
+ createDatabase: false,
25
+ region: props.regionId,
26
+ })));
27
+ const port = props.compute?.port ?? 3000;
28
+ const compute = yield* Compute("Compute", {
29
+ ...props.compute,
30
+ project: typeof project === "string" ? project : project.projectId,
31
+ artifactPath: artifact.artifactPath,
32
+ isExternal: true,
33
+ port,
34
+ regionId: props.regionId,
35
+ branchId: props.branchId,
36
+ branchGitName: props.branchGitName,
37
+ env: {
38
+ ...props.env,
39
+ PORT: String(port),
40
+ HOST: "0.0.0.0",
41
+ NODE_ENV: "production",
42
+ },
43
+ });
44
+ const domain = props.domain
45
+ ? yield* CustomDomain("Domain", { app: compute, hostname: props.domain })
46
+ : undefined;
47
+ return {
48
+ url: domain
49
+ ? Output.map(domain.hostname, (hostname) => `https://${hostname}`)
50
+ : compute.url,
51
+ compute,
52
+ project,
53
+ domain,
54
+ };
55
+ });
56
+ /** Compose a real framework build/dev server with a traced Prisma artifact. */
57
+ export const makeFrameworkSite = Effect.fn(function* (_id, props, config) {
58
+ const context = yield* AlchemyContext;
59
+ const remote = yield* ProviderModePolicy;
60
+ const handling = props.assets?.notFoundHandling;
61
+ const targetConfig = {
62
+ notFoundHandling: handling === "single-page-application"
63
+ ? "spa"
64
+ : (handling ?? config.notFoundHandling),
65
+ htmlHandling: props.assets?.htmlHandling ?? config.htmlHandling,
66
+ };
67
+ const build = yield* Server("Build", {
68
+ framework: config.framework,
69
+ target: config.target,
70
+ root: props.rootDir,
71
+ env: websiteBuildEnv(props.env),
72
+ options: { ...config.options, ...targetConfig, targetConfig },
73
+ memo: props.memo,
74
+ dev: props.dev,
75
+ });
76
+ if (context.dev && remote !== true) {
77
+ return {
78
+ url: build.url,
79
+ compute: undefined,
80
+ project: undefined,
81
+ domain: undefined,
82
+ };
83
+ }
84
+ const requiredPath = (value) => value === undefined
85
+ ? Effect.die(new Error(`The ${config.framework} Node build produced no deployable server output.`))
86
+ : Effect.succeed(value);
87
+ const artifact = yield* WebsiteArtifact("Artifact", {
88
+ root: props.rootDir ?? ".",
89
+ distDir: Output.mapEffect(requiredPath)(build.distDir),
90
+ serverEntry: Output.mapEffect(requiredPath)(build.serverEntry),
91
+ layout: config.layout,
92
+ buildHash: build.hash.output,
93
+ });
94
+ return yield* deployWebsite(props, artifact);
95
+ });
96
+ //# sourceMappingURL=FrameworkSite.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FrameworkSite.js","sourceRoot":"","sources":["../../../src/Prisma/Website/FrameworkSite.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,iBAAiB,CAAC;AAC1C,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OA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AAQ,GAAG,KAAK,CAAC,CAAC,eAAe,CAAC,UAAU,EAAE;QAClD,IAAI,EAAE,KAAK,CAAC,OAAO,IAAI,GAAG;QAC1B,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC;QACtD,WAAW,EAAE,MAAM,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC;QAC9D,MAAM,EAAE,MAAM,CAAC,MAAM;QACrB,SAAS,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM;KAC7B,CAAC,CAAC;IACH,OAAO,KAAK,CAAC,CAAC,aAAa,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;AAC/C,CAAC,CAAC,CAAC"}
@@ -0,0 +1,35 @@
1
+ import { type FrameworkSiteProps } from "./FrameworkSite.ts";
2
+ /** Configuration for a Prisma Nextjs website. */
3
+ export interface NextjsProps extends FrameworkSiteProps {
4
+ }
5
+ /**
6
+ * Next.js on Prisma Compute using next build and the existing Node custom-server target, not OpenNext. The artifact contains .next, public, configuration, and traced runtime dependencies, preserving installed package versions.
7
+ *
8
+ * Native framework development and HMR run without Prisma cloud resources.
9
+ * Apply `Alchemy.remote()` to use the live Compute deployment during dev.
10
+ * Packaging requires the optional `@vercel/nft` peer dependency.
11
+ *
12
+ * ### Creating a Website
13
+ * **Example:** Nextjs application
14
+ * ```typescript
15
+ * const site = yield* Prisma.Website.Nextjs("Web", {
16
+ * rootDir: "./app",
17
+ * });
18
+ * ```
19
+ *
20
+ * ### Deployment Configuration
21
+ * **Example:** Existing project and custom hostname
22
+ * ```typescript
23
+ * const site = yield* Prisma.Website.Nextjs("Web", {
24
+ * project,
25
+ * domain: "www.example.com",
26
+ * env: { API_BASE: "https://api.example.com" },
27
+ * compute: { destroyOldDeployment: true },
28
+ * });
29
+ * ```
30
+ *
31
+ * @resource
32
+ * @product Website
33
+ */
34
+ export declare const Nextjs: (id: string, props?: NextjsProps) => import("effect/Effect").Effect<import("./FrameworkSite.ts").Website, never, import("../../AlchemyContext.ts").AlchemyContext | import("../../Provider.ts").Provider<import("../../Website/Server.ts").Server> | import("../../Provider.ts").Provider<import("./Artifact.ts").WebsiteArtifact> | import("../Providers.ts").Providers>;
35
+ //# sourceMappingURL=Nextjs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Nextjs.d.ts","sourceRoot":"","sources":["../../../src/Prisma/Website/Nextjs.ts"],"names":[],"mappings":"AACA,OAAO,EAAqB,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAEhF,iDAAiD;AACjD,MAAM,WAAW,WAAY,SAAQ,kBAAkB;CAAG;AAE1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,MAAM,OAAQ,MAAM,UAAS,WAAW,yUAKxB,CAAC"}
@@ -0,0 +1,37 @@
1
+ import * as Namespace from "../../Namespace.js";
2
+ import { makeFrameworkSite } from "./FrameworkSite.js";
3
+ /**
4
+ * Next.js on Prisma Compute using next build and the existing Node custom-server target, not OpenNext. The artifact contains .next, public, configuration, and traced runtime dependencies, preserving installed package versions.
5
+ *
6
+ * Native framework development and HMR run without Prisma cloud resources.
7
+ * Apply `Alchemy.remote()` to use the live Compute deployment during dev.
8
+ * Packaging requires the optional `@vercel/nft` peer dependency.
9
+ *
10
+ * ### Creating a Website
11
+ * **Example:** Nextjs application
12
+ * ```typescript
13
+ * const site = yield* Prisma.Website.Nextjs("Web", {
14
+ * rootDir: "./app",
15
+ * });
16
+ * ```
17
+ *
18
+ * ### Deployment Configuration
19
+ * **Example:** Existing project and custom hostname
20
+ * ```typescript
21
+ * const site = yield* Prisma.Website.Nextjs("Web", {
22
+ * project,
23
+ * domain: "www.example.com",
24
+ * env: { API_BASE: "https://api.example.com" },
25
+ * compute: { destroyOldDeployment: true },
26
+ * });
27
+ * ```
28
+ *
29
+ * @resource
30
+ * @product Website
31
+ */
32
+ export const Nextjs = (id, props = {}) => makeFrameworkSite(id, props, {
33
+ framework: "@alchemy.run/frontend-frameworks/nextjs/node",
34
+ target: "@alchemy.run/frontend-frameworks/nextjs/node",
35
+ layout: "next",
36
+ }).pipe(Namespace.push(id));
37
+ //# sourceMappingURL=Nextjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Nextjs.js","sourceRoot":"","sources":["../../../src/Prisma/Website/Nextjs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAA2B,MAAM,oBAAoB,CAAC;AAKhF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,EAAU,EAAE,KAAK,GAAgB,EAAE,EAAE,EAAE,CAC5D,iBAAiB,CAAC,EAAE,EAAE,KAAK,EAAE;IAC3B,SAAS,EAAE,8CAA8C;IACzD,MAAM,EAAE,8CAA8C;IACtD,MAAM,EAAE,MAAM;CACf,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC"}
@@ -0,0 +1,37 @@
1
+ import { type FrameworkSiteProps } from "./FrameworkSite.ts";
2
+ /** Configuration for a Prisma Nuxt website. */
3
+ export interface NuxtProps extends FrameworkSiteProps {
4
+ /** Serializable overrides merged over nuxt.config.*; nitro.preset is owned by the Node target. */
5
+ nuxt?: Record<string, unknown>;
6
+ }
7
+ /**
8
+ * Nuxt SSR and prerendered assets on Prisma Compute. The Node target owns Nitro’s node preset; do not override nitro.preset.
9
+ *
10
+ * Native framework development and HMR run without Prisma cloud resources.
11
+ * Apply `Alchemy.remote()` to use the live Compute deployment during dev.
12
+ * Packaging requires the optional `@vercel/nft` peer dependency.
13
+ *
14
+ * ### Creating a Website
15
+ * **Example:** Nuxt application
16
+ * ```typescript
17
+ * const site = yield* Prisma.Website.Nuxt("Web", {
18
+ * rootDir: "./app",
19
+ * });
20
+ * ```
21
+ *
22
+ * ### Deployment Configuration
23
+ * **Example:** Existing project and custom hostname
24
+ * ```typescript
25
+ * const site = yield* Prisma.Website.Nuxt("Web", {
26
+ * project,
27
+ * domain: "www.example.com",
28
+ * env: { API_BASE: "https://api.example.com" },
29
+ * compute: { destroyOldDeployment: true },
30
+ * });
31
+ * ```
32
+ *
33
+ * @resource
34
+ * @product Website
35
+ */
36
+ export declare const Nuxt: (id: string, props?: NuxtProps) => import("effect/Effect").Effect<import("./FrameworkSite.ts").Website, never, import("../../AlchemyContext.ts").AlchemyContext | import("../../Provider.ts").Provider<import("../../Website/Server.ts").Server> | import("../../Provider.ts").Provider<import("./Artifact.ts").WebsiteArtifact> | import("../Providers.ts").Providers>;
37
+ //# sourceMappingURL=Nuxt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Nuxt.d.ts","sourceRoot":"","sources":["../../../src/Prisma/Website/Nuxt.ts"],"names":[],"mappings":"AACA,OAAO,EAAqB,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAEhF,+CAA+C;AAC/C,MAAM,WAAW,SAAU,SAAQ,kBAAkB;IACnD,kGAAkG;IAClG,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,IAAI,OAAQ,MAAM,UAAS,SAAS,yUAKpB,CAAC"}
@@ -0,0 +1,37 @@
1
+ import * as Namespace from "../../Namespace.js";
2
+ import { makeFrameworkSite } from "./FrameworkSite.js";
3
+ /**
4
+ * Nuxt SSR and prerendered assets on Prisma Compute. The Node target owns Nitro’s node preset; do not override nitro.preset.
5
+ *
6
+ * Native framework development and HMR run without Prisma cloud resources.
7
+ * Apply `Alchemy.remote()` to use the live Compute deployment during dev.
8
+ * Packaging requires the optional `@vercel/nft` peer dependency.
9
+ *
10
+ * ### Creating a Website
11
+ * **Example:** Nuxt application
12
+ * ```typescript
13
+ * const site = yield* Prisma.Website.Nuxt("Web", {
14
+ * rootDir: "./app",
15
+ * });
16
+ * ```
17
+ *
18
+ * ### Deployment Configuration
19
+ * **Example:** Existing project and custom hostname
20
+ * ```typescript
21
+ * const site = yield* Prisma.Website.Nuxt("Web", {
22
+ * project,
23
+ * domain: "www.example.com",
24
+ * env: { API_BASE: "https://api.example.com" },
25
+ * compute: { destroyOldDeployment: true },
26
+ * });
27
+ * ```
28
+ *
29
+ * @resource
30
+ * @product Website
31
+ */
32
+ export const Nuxt = (id, props = {}) => makeFrameworkSite(id, props, {
33
+ framework: "@alchemy.run/frontend-frameworks/nuxt",
34
+ target: "@alchemy.run/frontend-frameworks/nuxt/node",
35
+ options: { nuxt: props.nuxt },
36
+ }).pipe(Namespace.push(id));
37
+ //# sourceMappingURL=Nuxt.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Nuxt.js","sourceRoot":"","sources":["../../../src/Prisma/Website/Nuxt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAA2B,MAAM,oBAAoB,CAAC;AAQhF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,EAAU,EAAE,KAAK,GAAc,EAAE,EAAE,EAAE,CACxD,iBAAiB,CAAC,EAAE,EAAE,KAAK,EAAE;IAC3B,SAAS,EAAE,uCAAuC;IAClD,MAAM,EAAE,4CAA4C;IACpD,OAAO,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE;CAC9B,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC"}
@@ -0,0 +1,35 @@
1
+ import { type FrameworkSiteProps } from "./FrameworkSite.ts";
2
+ /** Configuration for a Prisma Octane website. */
3
+ export interface OctaneProps extends FrameworkSiteProps {
4
+ }
5
+ /**
6
+ * Octane SSR and client assets on Prisma Compute. Select node() from @alchemy.run/frontend-frameworks/octane/node-adapter in the project’s octane.config.ts.
7
+ *
8
+ * Native framework development and HMR run without Prisma cloud resources.
9
+ * Apply `Alchemy.remote()` to use the live Compute deployment during dev.
10
+ * Packaging requires the optional `@vercel/nft` peer dependency.
11
+ *
12
+ * ### Creating a Website
13
+ * **Example:** Octane application
14
+ * ```typescript
15
+ * const site = yield* Prisma.Website.Octane("Web", {
16
+ * rootDir: "./app",
17
+ * });
18
+ * ```
19
+ *
20
+ * ### Deployment Configuration
21
+ * **Example:** Existing project and custom hostname
22
+ * ```typescript
23
+ * const site = yield* Prisma.Website.Octane("Web", {
24
+ * project,
25
+ * domain: "www.example.com",
26
+ * env: { API_BASE: "https://api.example.com" },
27
+ * compute: { destroyOldDeployment: true },
28
+ * });
29
+ * ```
30
+ *
31
+ * @resource
32
+ * @product Website
33
+ */
34
+ export declare const Octane: (id: string, props?: OctaneProps) => import("effect/Effect").Effect<import("./FrameworkSite.ts").Website, never, import("../../AlchemyContext.ts").AlchemyContext | import("../../Provider.ts").Provider<import("../../Website/Server.ts").Server> | import("../../Provider.ts").Provider<import("./Artifact.ts").WebsiteArtifact> | import("../Providers.ts").Providers>;
35
+ //# sourceMappingURL=Octane.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Octane.d.ts","sourceRoot":"","sources":["../../../src/Prisma/Website/Octane.ts"],"names":[],"mappings":"AACA,OAAO,EAAqB,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAEhF,iDAAiD;AACjD,MAAM,WAAW,WAAY,SAAQ,kBAAkB;CAAG;AAE1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,MAAM,OAAQ,MAAM,UAAS,WAAW,yUAIxB,CAAC"}
@@ -0,0 +1,36 @@
1
+ import * as Namespace from "../../Namespace.js";
2
+ import { makeFrameworkSite } from "./FrameworkSite.js";
3
+ /**
4
+ * Octane SSR and client assets on Prisma Compute. Select node() from @alchemy.run/frontend-frameworks/octane/node-adapter in the project’s octane.config.ts.
5
+ *
6
+ * Native framework development and HMR run without Prisma cloud resources.
7
+ * Apply `Alchemy.remote()` to use the live Compute deployment during dev.
8
+ * Packaging requires the optional `@vercel/nft` peer dependency.
9
+ *
10
+ * ### Creating a Website
11
+ * **Example:** Octane application
12
+ * ```typescript
13
+ * const site = yield* Prisma.Website.Octane("Web", {
14
+ * rootDir: "./app",
15
+ * });
16
+ * ```
17
+ *
18
+ * ### Deployment Configuration
19
+ * **Example:** Existing project and custom hostname
20
+ * ```typescript
21
+ * const site = yield* Prisma.Website.Octane("Web", {
22
+ * project,
23
+ * domain: "www.example.com",
24
+ * env: { API_BASE: "https://api.example.com" },
25
+ * compute: { destroyOldDeployment: true },
26
+ * });
27
+ * ```
28
+ *
29
+ * @resource
30
+ * @product Website
31
+ */
32
+ export const Octane = (id, props = {}) => makeFrameworkSite(id, props, {
33
+ framework: "@alchemy.run/frontend-frameworks/octane",
34
+ target: "@alchemy.run/frontend-frameworks/octane/node",
35
+ }).pipe(Namespace.push(id));
36
+ //# sourceMappingURL=Octane.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Octane.js","sourceRoot":"","sources":["../../../src/Prisma/Website/Octane.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAA2B,MAAM,oBAAoB,CAAC;AAKhF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,EAAU,EAAE,KAAK,GAAgB,EAAE,EAAE,EAAE,CAC5D,iBAAiB,CAAC,EAAE,EAAE,KAAK,EAAE;IAC3B,SAAS,EAAE,yCAAyC;IACpD,MAAM,EAAE,8CAA8C;CACvD,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC"}
@@ -0,0 +1,35 @@
1
+ import { type FrameworkSiteProps } from "./FrameworkSite.ts";
2
+ /** Configuration for a Prisma ReactRouter website. */
3
+ export interface ReactRouterProps extends FrameworkSiteProps {
4
+ }
5
+ /**
6
+ * React Router SSR and browser assets on Prisma Compute using the existing Node framework target.
7
+ *
8
+ * Native framework development and HMR run without Prisma cloud resources.
9
+ * Apply `Alchemy.remote()` to use the live Compute deployment during dev.
10
+ * Packaging requires the optional `@vercel/nft` peer dependency.
11
+ *
12
+ * ### Creating a Website
13
+ * **Example:** ReactRouter application
14
+ * ```typescript
15
+ * const site = yield* Prisma.Website.ReactRouter("Web", {
16
+ * rootDir: "./app",
17
+ * });
18
+ * ```
19
+ *
20
+ * ### Deployment Configuration
21
+ * **Example:** Existing project and custom hostname
22
+ * ```typescript
23
+ * const site = yield* Prisma.Website.ReactRouter("Web", {
24
+ * project,
25
+ * domain: "www.example.com",
26
+ * env: { API_BASE: "https://api.example.com" },
27
+ * compute: { destroyOldDeployment: true },
28
+ * });
29
+ * ```
30
+ *
31
+ * @resource
32
+ * @product Website
33
+ */
34
+ export declare const ReactRouter: (id: string, props?: ReactRouterProps) => import("effect/Effect").Effect<import("./FrameworkSite.ts").Website, never, import("../../AlchemyContext.ts").AlchemyContext | import("../../Provider.ts").Provider<import("../../Website/Server.ts").Server> | import("../../Provider.ts").Provider<import("./Artifact.ts").WebsiteArtifact> | import("../Providers.ts").Providers>;
35
+ //# sourceMappingURL=ReactRouter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReactRouter.d.ts","sourceRoot":"","sources":["../../../src/Prisma/Website/ReactRouter.ts"],"names":[],"mappings":"AACA,OAAO,EAAqB,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAEhF,sDAAsD;AACtD,MAAM,WAAW,gBAAiB,SAAQ,kBAAkB;CAAG;AAE/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,WAAW,OAAQ,MAAM,UAAS,gBAAgB,yUAIlC,CAAC"}
@@ -0,0 +1,36 @@
1
+ import * as Namespace from "../../Namespace.js";
2
+ import { makeFrameworkSite } from "./FrameworkSite.js";
3
+ /**
4
+ * React Router SSR and browser assets on Prisma Compute using the existing Node framework target.
5
+ *
6
+ * Native framework development and HMR run without Prisma cloud resources.
7
+ * Apply `Alchemy.remote()` to use the live Compute deployment during dev.
8
+ * Packaging requires the optional `@vercel/nft` peer dependency.
9
+ *
10
+ * ### Creating a Website
11
+ * **Example:** ReactRouter application
12
+ * ```typescript
13
+ * const site = yield* Prisma.Website.ReactRouter("Web", {
14
+ * rootDir: "./app",
15
+ * });
16
+ * ```
17
+ *
18
+ * ### Deployment Configuration
19
+ * **Example:** Existing project and custom hostname
20
+ * ```typescript
21
+ * const site = yield* Prisma.Website.ReactRouter("Web", {
22
+ * project,
23
+ * domain: "www.example.com",
24
+ * env: { API_BASE: "https://api.example.com" },
25
+ * compute: { destroyOldDeployment: true },
26
+ * });
27
+ * ```
28
+ *
29
+ * @resource
30
+ * @product Website
31
+ */
32
+ export const ReactRouter = (id, props = {}) => makeFrameworkSite(id, props, {
33
+ framework: "@alchemy.run/frontend-frameworks/react-router",
34
+ target: "@alchemy.run/frontend-frameworks/react-router/node",
35
+ }).pipe(Namespace.push(id));
36
+ //# sourceMappingURL=ReactRouter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReactRouter.js","sourceRoot":"","sources":["../../../src/Prisma/Website/ReactRouter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAA2B,MAAM,oBAAoB,CAAC;AAKhF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAAU,EAAE,KAAK,GAAqB,EAAE,EAAE,EAAE,CACtE,iBAAiB,CAAC,EAAE,EAAE,KAAK,EAAE;IAC3B,SAAS,EAAE,+CAA+C;IAC1D,MAAM,EAAE,oDAAoD;CAC7D,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC"}
@@ -0,0 +1,37 @@
1
+ import { type FrameworkSiteProps } from "./FrameworkSite.ts";
2
+ /** Configuration for a Prisma SolidStart website. */
3
+ export interface SolidStartProps extends FrameworkSiteProps {
4
+ /** Serializable Nitro plugin options, including prerender and routeRules. The Node target owns preset. */
5
+ nitro?: Record<string, unknown>;
6
+ }
7
+ /**
8
+ * SolidStart SSR and prerendered assets on Prisma Compute. The integration owns the Nitro plugin; omit nitroV2Plugin() from vite.config.* and configure prerendering through nitro.
9
+ *
10
+ * Native framework development and HMR run without Prisma cloud resources.
11
+ * Apply `Alchemy.remote()` to use the live Compute deployment during dev.
12
+ * Packaging requires the optional `@vercel/nft` peer dependency.
13
+ *
14
+ * ### Creating a Website
15
+ * **Example:** SolidStart application
16
+ * ```typescript
17
+ * const site = yield* Prisma.Website.SolidStart("Web", {
18
+ * rootDir: "./app",
19
+ * });
20
+ * ```
21
+ *
22
+ * ### Deployment Configuration
23
+ * **Example:** Existing project and custom hostname
24
+ * ```typescript
25
+ * const site = yield* Prisma.Website.SolidStart("Web", {
26
+ * project,
27
+ * domain: "www.example.com",
28
+ * env: { API_BASE: "https://api.example.com" },
29
+ * compute: { destroyOldDeployment: true },
30
+ * });
31
+ * ```
32
+ *
33
+ * @resource
34
+ * @product Website
35
+ */
36
+ export declare const SolidStart: (id: string, props?: SolidStartProps) => import("effect/Effect").Effect<import("./FrameworkSite.ts").Website, never, import("../../AlchemyContext.ts").AlchemyContext | import("../../Provider.ts").Provider<import("../../Website/Server.ts").Server> | import("../../Provider.ts").Provider<import("./Artifact.ts").WebsiteArtifact> | import("../Providers.ts").Providers>;
37
+ //# sourceMappingURL=SolidStart.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SolidStart.d.ts","sourceRoot":"","sources":["../../../src/Prisma/Website/SolidStart.ts"],"names":[],"mappings":"AACA,OAAO,EAAqB,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAEhF,qDAAqD;AACrD,MAAM,WAAW,eAAgB,SAAQ,kBAAkB;IACzD,0GAA0G;IAC1G,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACjC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,UAAU,OAAQ,MAAM,UAAS,eAAe,yUAKhC,CAAC"}
@@ -0,0 +1,37 @@
1
+ import * as Namespace from "../../Namespace.js";
2
+ import { makeFrameworkSite } from "./FrameworkSite.js";
3
+ /**
4
+ * SolidStart SSR and prerendered assets on Prisma Compute. The integration owns the Nitro plugin; omit nitroV2Plugin() from vite.config.* and configure prerendering through nitro.
5
+ *
6
+ * Native framework development and HMR run without Prisma cloud resources.
7
+ * Apply `Alchemy.remote()` to use the live Compute deployment during dev.
8
+ * Packaging requires the optional `@vercel/nft` peer dependency.
9
+ *
10
+ * ### Creating a Website
11
+ * **Example:** SolidStart application
12
+ * ```typescript
13
+ * const site = yield* Prisma.Website.SolidStart("Web", {
14
+ * rootDir: "./app",
15
+ * });
16
+ * ```
17
+ *
18
+ * ### Deployment Configuration
19
+ * **Example:** Existing project and custom hostname
20
+ * ```typescript
21
+ * const site = yield* Prisma.Website.SolidStart("Web", {
22
+ * project,
23
+ * domain: "www.example.com",
24
+ * env: { API_BASE: "https://api.example.com" },
25
+ * compute: { destroyOldDeployment: true },
26
+ * });
27
+ * ```
28
+ *
29
+ * @resource
30
+ * @product Website
31
+ */
32
+ export const SolidStart = (id, props = {}) => makeFrameworkSite(id, props, {
33
+ framework: "@alchemy.run/frontend-frameworks/solidstart",
34
+ target: "@alchemy.run/frontend-frameworks/solidstart/node",
35
+ options: { nitro: props.nitro },
36
+ }).pipe(Namespace.push(id));
37
+ //# sourceMappingURL=SolidStart.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SolidStart.js","sourceRoot":"","sources":["../../../src/Prisma/Website/SolidStart.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAA2B,MAAM,oBAAoB,CAAC;AAQhF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EAAU,EAAE,KAAK,GAAoB,EAAE,EAAE,EAAE,CACpE,iBAAiB,CAAC,EAAE,EAAE,KAAK,EAAE;IAC3B,SAAS,EAAE,6CAA6C;IACxD,MAAM,EAAE,kDAAkD;IAC1D,OAAO,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE;CAChC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC"}
@@ -0,0 +1,57 @@
1
+ import * as Effect from "effect/Effect";
2
+ import * as Path from "effect/Path";
3
+ import * as Redacted from "effect/Redacted";
4
+ import { AlchemyContext } from "../../AlchemyContext.ts";
5
+ import * as Command from "../../Command/index.ts";
6
+ import { WebsiteArtifact } from "./Artifact.ts";
7
+ import { type FrameworkSiteProps, type Website } from "./FrameworkSite.ts";
8
+ /** A command-built website with the same build vocabulary as Fly and Railway. */
9
+ export interface StaticSiteProps extends Omit<Command.BuildProps, "env">, Omit<FrameworkSiteProps, "dev" | "memo"> {
10
+ /** Local command; skips the production build. Without a command, a local static server serves the built output. */
11
+ dev?: {
12
+ /** Shell command that starts the native dev server. */
13
+ command: string;
14
+ /** Dev command directory; defaults to cwd or rootDir. */
15
+ cwd?: string;
16
+ /** Additional development environment variables. */
17
+ env?: Record<string, string | Redacted.Redacted<string>>;
18
+ /** Explicit dev URL when the command does not print one. */
19
+ url?: string;
20
+ };
21
+ /** Return index.html on unmatched paths. Mutually exclusive with errorPage. */
22
+ spa?: boolean;
23
+ /** HTML file returned with HTTP 404; relative to outdir. Mutually exclusive with spa. */
24
+ errorPage?: string;
25
+ }
26
+ /**
27
+ * Build a static website with a shell command and serve it on Prisma Compute.
28
+ * Only the output directory is packaged; the repository is never uploaded.
29
+ * Native development declares no Prisma Project, Compute, or custom domain.
30
+ * `Alchemy.remote()` opts into the live deployment during development.
31
+ *
32
+ * ### Creating a Static Website
33
+ * **Example:** Hugo website
34
+ * ```typescript
35
+ * const site = yield* Prisma.Website.StaticSite("Blog", {
36
+ * command: "hugo --minify",
37
+ * outdir: "public",
38
+ * });
39
+ * ```
40
+ *
41
+ * ### Monorepos and Development
42
+ * **Example:** A custom frontend build
43
+ * ```typescript
44
+ * const site = yield* Prisma.Website.StaticSite("Web", {
45
+ * cwd: "apps/web",
46
+ * command: "npm run build",
47
+ * outdir: "dist",
48
+ * spa: true,
49
+ * dev: { command: "npm run dev" },
50
+ * });
51
+ * ```
52
+ *
53
+ * @resource
54
+ * @product Website
55
+ */
56
+ export declare const StaticSite: (id: string, props: StaticSiteProps) => Effect.Effect<Website, never, AlchemyContext | Path.Path | import("../../Provider.ts").Provider<Command.Build> | import("../../Provider.ts").Provider<Command.Dev> | import("../../Provider.ts").Provider<WebsiteArtifact> | import("../Providers.ts").Providers>;
57
+ //# sourceMappingURL=StaticSite.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StaticSite.d.ts","sourceRoot":"","sources":["../../../src/Prisma/Website/StaticSite.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AACpC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC;AAKlD,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,OAAO,EACb,MAAM,oBAAoB,CAAC;AAE5B,iFAAiF;AACjF,MAAM,WAAW,eACf,SACE,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,KAAK,CAAC,EAC/B,IAAI,CAAC,kBAAkB,EAAE,KAAK,GAAG,MAAM,CAAC;IAC1C,mHAAmH;IACnH,GAAG,CAAC,EAAE;QACJ,uDAAuD;QACvD,OAAO,EAAE,MAAM,CAAC;QAChB,yDAAyD;QACzD,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,oDAAoD;QACpD,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;QACzD,4DAA4D;QAC5D,GAAG,CAAC,EAAE,MAAM,CAAC;KACd,CAAC;IACF,+EAA+E;IAC/E,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,yFAAyF;IACzF,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAID;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,eAAO,MAAM,UAAU,OAAQ,MAAM,SAAS,eAAe,sQA6EhC,CAAC"}