···11-import { createEnv } from '@t3-oss/env-core'
22-import { z } from 'zod'
11+import { createEnv } from "@t3-oss/env-core";
22+import { z } from "zod";
3344export const env = createEnv({
55- server: {
66- SERVER_URL: z.string().url().optional(),
77- },
55+ server: {
66+ SERVER_URL: z.string().url().optional(),
77+ },
8899- /**
1010- * The prefix that client-side variables must have. This is enforced both at
1111- * a type-level and at runtime.
1212- */
1313- clientPrefix: 'VITE_',
99+ /**
1010+ * The prefix that client-side variables must have. This is enforced both at
1111+ * a type-level and at runtime.
1212+ */
1313+ clientPrefix: "VITE_",
14141515- client: {
1616- VITE_APP_TITLE: z.string().min(1).optional(),
1717- VITE_API_URL: z.string().url().default('http://127.0.0.1:3001'),
1818- },
1515+ client: {
1616+ VITE_APP_TITLE: z.string().min(1).optional(),
1717+ VITE_API_URL: z.string().url().default("http://127.0.0.1:3001"),
1818+ },
19192020- /**
2121- * What object holds the environment variables at runtime. This is usually
2222- * `process.env` or `import.meta.env`.
2323- */
2424- runtimeEnv: import.meta.env,
2020+ /**
2121+ * What object holds the environment variables at runtime. This is usually
2222+ * `process.env` or `import.meta.env`.
2323+ */
2424+ runtimeEnv: import.meta.env,
25252626- /**
2727- * By default, this library will feed the environment variables directly to
2828- * the Zod validator.
2929- *
3030- * This means that if you have an empty string for a value that is supposed
3131- * to be a number (e.g. `PORT=` in a ".env" file), Zod will incorrectly flag
3232- * it as a type mismatch violation. Additionally, if you have an empty string
3333- * for a value that is supposed to be a string with a default value (e.g.
3434- * `DOMAIN=` in an ".env" file), the default value will never be applied.
3535- *
3636- * In order to solve these issues, we recommend that all new projects
3737- * explicitly specify this option as true.
3838- */
3939- emptyStringAsUndefined: true,
4040-})
2626+ /**
2727+ * By default, this library will feed the environment variables directly to
2828+ * the Zod validator.
2929+ *
3030+ * This means that if you have an empty string for a value that is supposed
3131+ * to be a number (e.g. `PORT=` in a ".env" file), Zod will incorrectly flag
3232+ * it as a type mismatch violation. Additionally, if you have an empty string
3333+ * for a value that is supposed to be a string with a default value (e.g.
3434+ * `DOMAIN=` in an ".env" file), the default value will never be applied.
3535+ *
3636+ * In order to solve these issues, we recommend that all new projects
3737+ * explicitly specify this option as true.
3838+ */
3939+ emptyStringAsUndefined: true,
4040+});