mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
feat(cli): add alchemy and improve cli tooling and structure (#520)
This commit is contained in:
20
apps/cli/templates/deploy/alchemy/env.d.ts.hbs
Normal file
20
apps/cli/templates/deploy/alchemy/env.d.ts.hbs
Normal file
@@ -0,0 +1,20 @@
|
||||
// This file infers types for the cloudflare:workers environment from your Alchemy Worker.
|
||||
// @see https://alchemy.run/concepts/bindings/#type-safe-bindings
|
||||
|
||||
{{#if (eq webDeploy "alchemy")}}
|
||||
import type { server } from "../../alchemy.run";
|
||||
{{else}}
|
||||
import type { server } from "./alchemy.run";
|
||||
{{/if}}
|
||||
|
||||
export type CloudflareEnv = typeof server.Env;
|
||||
|
||||
declare global {
|
||||
type Env = CloudflareEnv;
|
||||
}
|
||||
|
||||
declare module "cloudflare:workers" {
|
||||
namespace Cloudflare {
|
||||
export interface Env extends CloudflareEnv {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user