Add management tokens to registrations allowing users to view, edit, and cancel their registration via a unique URL. Implement email notifications for confirmations, updates, and cancellations using nodemailer. Simplify art forms grid from 6 to 4 items and remove trajectory links. Translate footer links to Dutch and fix matzah spelling in info section.
38 lines
995 B
TypeScript
38 lines
995 B
TypeScript
import alchemy from "alchemy";
|
|
import { TanStackStart } from "alchemy/cloudflare";
|
|
import { config } from "dotenv";
|
|
|
|
config({ path: "./.env" });
|
|
config({ path: "../env/.env" });
|
|
|
|
const app = await alchemy("kk");
|
|
|
|
// Helper function to get required env var
|
|
function getEnvVar(name: string): string {
|
|
const value = process.env[name];
|
|
if (!value) {
|
|
throw new Error(`Missing required environment variable: ${name}`);
|
|
}
|
|
return value;
|
|
}
|
|
|
|
export const web = await TanStackStart("web", {
|
|
cwd: "../../apps/web",
|
|
bindings: {
|
|
DATABASE_URL: getEnvVar("DATABASE_URL"),
|
|
CORS_ORIGIN: getEnvVar("CORS_ORIGIN"),
|
|
BETTER_AUTH_SECRET: getEnvVar("BETTER_AUTH_SECRET"),
|
|
BETTER_AUTH_URL: getEnvVar("BETTER_AUTH_URL"),
|
|
SMTP_HOST: getEnvVar("SMTP_HOST"),
|
|
SMTP_PORT: getEnvVar("SMTP_PORT"),
|
|
SMTP_USER: getEnvVar("SMTP_USER"),
|
|
SMTP_PASS: getEnvVar("SMTP_PASS"),
|
|
SMTP_FROM: getEnvVar("SMTP_FROM"),
|
|
},
|
|
domains: ["kunstenkamp.be"],
|
|
});
|
|
|
|
console.log(`Web -> ${web.url}`);
|
|
|
|
await app.finalize();
|