initial commit
This commit is contained in:
22
packages/infra/alchemy.run.ts
Normal file
22
packages/infra/alchemy.run.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import alchemy from "alchemy";
|
||||
import { TanStackStart } from "alchemy/cloudflare";
|
||||
import { config } from "dotenv";
|
||||
|
||||
config({ path: "./.env" });
|
||||
config({ path: "../../apps/web/.env" });
|
||||
|
||||
const app = await alchemy("kk");
|
||||
|
||||
export const web = await TanStackStart("web", {
|
||||
cwd: "../../apps/web",
|
||||
bindings: {
|
||||
DATABASE_URL: alchemy.secret.env.DATABASE_URL!,
|
||||
CORS_ORIGIN: alchemy.env.CORS_ORIGIN!,
|
||||
BETTER_AUTH_SECRET: alchemy.secret.env.BETTER_AUTH_SECRET!,
|
||||
BETTER_AUTH_URL: alchemy.env.BETTER_AUTH_URL!,
|
||||
},
|
||||
});
|
||||
|
||||
console.log(`Web -> ${web.url}`);
|
||||
|
||||
await app.finalize();
|
||||
Reference in New Issue
Block a user