@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 06:00 UTC

main
ts 45 lines 1.5 KB
Raw
1 import { frameworkSite, type FrameworkSiteProps } from "./FrameworkSite.ts";
2
3 /** The framework-integration package that drives the Octane build. */
4 export const OCTANE_FRAMEWORK_SPECIFIER = "@alchemy.run/frontend-frameworks/octane";
5
6 /** The Node container deploy target for the Octane build. */
7 export const OCTANE_NODE_TARGET_SPECIFIER = "@alchemy.run/frontend-frameworks/octane/node";
8
9 export interface OctaneProps extends FrameworkSiteProps {}
10
11 /**
12 * Deploy an [OctaneJS](https://octanejs.dev) application to Cloud Run: Octane's
13 * SSR server in a Cloud Run container, static assets baked into the image.
14 *
15 * `GCP.Website.Octane` selects hosting and automatically wraps Octane's
16 * default native Node output. Keep compiler and route settings in
17 * `octane.config.ts` without an adapter. The legacy Node marker adapter
18 * remains optional for existing projects.
19 *
20 * ### Creating Octane Sites
21 * **Example:** Basic Octane App
22 * ```typescript
23 * const site = yield* GCP.Website.Octane("Web", {
24 * rootDir: "./app",
25 * });
26 * ```
27 *
28 * **Example:** Warm Instance with More Memory
29 * ```typescript
30 * const site = yield* GCP.Website.Octane("Web", {
31 * rootDir: "./app",
32 * scaling: { minInstanceCount: 1 },
33 * resources: { limits: { cpu: "1", memory: "1Gi" } },
34 * });
35 * ```
36 *
37 * @resource
38 * @product Website
39 */
40 export const Octane = (id: string, props: OctaneProps = {}) =>
41 frameworkSite(id, props, {
42 name: "Octane",
43 framework: OCTANE_FRAMEWORK_SPECIFIER,
44 target: OCTANE_NODE_TARGET_SPECIFIER,
45 });