···55 sqliteTable,
66 text,
77} from "drizzle-orm/sqlite-core";
88-import { createInsertSchema, createSelectSchema } from "drizzle-zod";
99-import * as z from "zod";
108119import { monitor } from "../monitors";
1210import { workspace } from "../workspaces";
···11+import { createEnv } from "@t3-oss/env-core";
22+import { z } from "zod";
33+44+export const env = createEnv({
55+ server: {
66+ TWILLIO_AUTH_TOKEN: z.string(),
77+ TWILLIO_ACCOUNT_ID: z.string(),
88+ },
99+1010+ /**
1111+ * What object holds the environment variables at runtime. This is usually
1212+ * `process.env` or `import.meta.env`.
1313+ */
1414+ runtimeEnv: process.env,
1515+1616+ /**
1717+ * By default, this library will feed the environment variables directly to
1818+ * the Zod validator.
1919+ *
2020+ * This means that if you have an empty string for a value that is supposed
2121+ * to be a number (e.g. `PORT=` in a ".env" file), Zod will incorrectly flag
2222+ * it as a type mismatch violation. Additionally, if you have an empty string
2323+ * for a value that is supposed to be a string with a default value (e.g.
2424+ * `DOMAIN=` in an ".env" file), the default value will never be applied.
2525+ *
2626+ * In order to solve these issues, we recommend that all new projects
2727+ * explicitly specify this option as true.
2828+ */
2929+ skipValidation: true,
3030+});