@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 42 lines 1.43 KB
Raw
1 import { KvNamespace, Text } from "@alchemy.run/cloudflare-runtime/core/bindings";
2 import * as Options from "@alchemy.run/cloudflare-test-tools/e2e/Options";
3 import { make } from "@alchemy.run/frontend-frameworks/nextjs";
4 import { kCurrentWorker } from "miniflare";
5
6 export default Options.make({
7 // Exercise explicit OpenNext configuration for direct framework consumers.
8 framework: (options) => make({ ...options, nextjs: { configPath: "open-next.config.ts" } }),
9 vite: {
10 compatibilityDate: "2026-05-12",
11 compatibilityFlags: ["nodejs_compat", "global_fetch_strictly_public"],
12 worker: {
13 name: "fixtures-nextjs",
14 bindings: [
15 Text.local("TEST_TEXT", "hello-from-binding"),
16 KvNamespace.local({ binding: "FIXTURE_KV" }),
17 ],
18 },
19 },
20 miniflare: {
21 name: "fixtures-nextjs",
22 compatibilityDate: "2026-05-12",
23 compatibilityFlags: ["nodejs_compat", "global_fetch_strictly_public"],
24 bindings: { TEST_TEXT: "hello-from-binding" },
25 kvNamespaces: ["FIXTURE_KV"],
26 serviceBindings: { WORKER_SELF_REFERENCE: kCurrentWorker },
27 durableObjects: {
28 NEXT_CACHE_DO_QUEUE: { className: "DOQueueHandler", useSQLite: true },
29 },
30 assets: {
31 binding: "ASSETS",
32 routerConfig: {
33 has_user_worker: true,
34 invoke_user_worker_ahead_of_assets: true,
35 },
36 assetConfig: {
37 html_handling: "none",
38 not_found_handling: "none",
39 },
40 },
41 },
42 });