webpage start

This commit is contained in:
2026-03-02 14:47:14 +01:00
parent 0856e154b9
commit 65d5ab71d7
59 changed files with 1889 additions and 1309 deletions

View File

@@ -1,21 +1,21 @@
{
"name": "@kk/env",
"version": "0.0.0",
"private": true,
"type": "module",
"exports": {
"./server": "./src/server.ts",
"./web": "./src/web.ts"
},
"dependencies": {
"@t3-oss/env-core": "^0.13.1",
"dotenv": "catalog:",
"zod": "catalog:"
},
"devDependencies": {
"@kk/config": "workspace:*",
"@kk/infra": "workspace:*",
"@types/node": "catalog:",
"typescript": "catalog:"
}
"name": "@kk/env",
"version": "0.0.0",
"private": true,
"type": "module",
"exports": {
"./server": "./src/server.ts",
"./web": "./src/web.ts"
},
"dependencies": {
"@t3-oss/env-core": "^0.13.1",
"dotenv": "catalog:",
"zod": "catalog:"
},
"devDependencies": {
"@kk/config": "workspace:*",
"@kk/infra": "workspace:*",
"@types/node": "catalog:",
"typescript": "catalog:"
}
}

View File

@@ -3,13 +3,15 @@ import { createEnv } from "@t3-oss/env-core";
import { z } from "zod";
export const env = createEnv({
server: {
DATABASE_URL: z.string().min(1),
BETTER_AUTH_SECRET: z.string().min(32),
BETTER_AUTH_URL: z.url(),
CORS_ORIGIN: z.url(),
NODE_ENV: z.enum(["development", "production", "test"]).default("development"),
},
runtimeEnv: process.env,
emptyStringAsUndefined: true,
server: {
DATABASE_URL: z.string().min(1),
BETTER_AUTH_SECRET: z.string().min(32),
BETTER_AUTH_URL: z.url(),
CORS_ORIGIN: z.url(),
NODE_ENV: z
.enum(["development", "production", "test"])
.default("development"),
},
runtimeEnv: process.env,
emptyStringAsUndefined: true,
});

View File

@@ -1,9 +1,9 @@
import { createEnv } from "@t3-oss/env-core";
import { z } from "zod";
export const env = createEnv({
clientPrefix: "VITE_",
client: {},
runtimeEnv: (import.meta as any).env,
emptyStringAsUndefined: true,
clientPrefix: "VITE_",
client: {},
// biome-ignore lint/suspicious/noExplicitAny: Vite's import.meta.env doesn't have proper types
runtimeEnv: (import.meta as any).env,
emptyStringAsUndefined: true,
});

View File

@@ -1,3 +1,3 @@
{
"extends": "@kk/config/tsconfig.base.json"
"extends": "@kk/config/tsconfig.base.json"
}