This commit is contained in:
Nicolas Meienberger 2026-05-07 12:35:43 +02:00
parent bf36799daa
commit 4a218fd54b
No known key found for this signature in database
8 changed files with 16 additions and 11 deletions

View file

@ -2,7 +2,7 @@ import { useTheme } from "~/client/components/theme-provider";
import { Toaster as Sonner, type ToasterProps } from "sonner"; import { Toaster as Sonner, type ToasterProps } from "sonner";
const Toaster = ({ ...props }: ToasterProps) => { const Toaster = ({ ...props }: ToasterProps) => {
const { theme = "dark" } = useTheme(); const { theme } = useTheme();
return ( return (
<Sonner <Sonner

View file

@ -27,6 +27,7 @@ export const auth = betterAuth({
baseURL: { baseURL: {
allowedHosts: config.allowedHosts, allowedHosts: config.allowedHosts,
protocol: "auto", protocol: "auto",
fallback: config.baseUrl,
}, },
trustedOrigins: config.trustedOrigins, trustedOrigins: config.trustedOrigins,
rateLimit: { rateLimit: {

View file

@ -6,10 +6,10 @@
"#/*": "./src/*" "#/*": "./src/*"
}, },
"scripts": { "scripts": {
"dev": "vite dev", "dev": "vp dev",
"build": "vite build", "build": "vp build",
"preview": "vite preview", "preview": "vp preview",
"deploy": "bun run build && wrangler deploy", "deploy": "vp run build && wrangler deploy",
"cf-typegen": "wrangler types", "cf-typegen": "wrangler types",
"tsc": "tsc --noEmit" "tsc": "tsc --noEmit"
}, },
@ -52,6 +52,7 @@
"typescript": "^6.0.3", "typescript": "^6.0.3",
"vite": "^8.0.10", "vite": "^8.0.10",
"vite-plugin-killer-instincts": "^1.1.0", "vite-plugin-killer-instincts": "^1.1.0",
"vite-plus": "^0.1.20",
"vitest": "^4.1.5", "vitest": "^4.1.5",
"wrangler": "^4.88.0" "wrangler": "^4.88.0"
}, },

View file

@ -1,4 +1,4 @@
import { defineConfig } from "vite"; import { defineConfig } from "vite-plus";
import { devtools } from "@tanstack/devtools-vite"; import { devtools } from "@tanstack/devtools-vite";
import { tanstackStart } from "@tanstack/react-start/plugin/vite"; import { tanstackStart } from "@tanstack/react-start/plugin/vite";

View file

@ -159,6 +159,7 @@
"typescript": "^6.0.3", "typescript": "^6.0.3",
"vite": "^8.0.10", "vite": "^8.0.10",
"vite-plugin-killer-instincts": "^1.1.0", "vite-plugin-killer-instincts": "^1.1.0",
"vite-plus": "^0.1.20",
"vitest": "^4.1.5", "vitest": "^4.1.5",
"wrangler": "^4.88.0", "wrangler": "^4.88.0",
}, },
@ -1580,7 +1581,7 @@
"es-errors": ["es-errors@1.3.0", "", {}, "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw=="], "es-errors": ["es-errors@1.3.0", "", {}, "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw=="],
"es-module-lexer": ["es-module-lexer@2.0.0", "", {}, "sha512-5POEcUuZybH7IdmGsD8wlf0AI55wMecM9rVBTI/qEAy2c1kTOm3DjFYjrBdI2K3BaJjJYfYFeRtM0t9ssnRuxw=="], "es-module-lexer": ["es-module-lexer@2.1.0", "", {}, "sha512-n27zTYMjYu1aj4MjCWzSP7G9r75utsaoc8m61weK+W8JMBGGQybd43GstCXZ3WNmSFtGT9wi59qQTW6mhTR5LQ=="],
"es-object-atoms": ["es-object-atoms@1.1.1", "", { "dependencies": { "es-errors": "^1.3.0" } }, "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA=="], "es-object-atoms": ["es-object-atoms@1.1.1", "", { "dependencies": { "es-errors": "^1.3.0" } }, "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA=="],

View file

@ -9,9 +9,10 @@
"scripts": { "scripts": {
"postinstall": "vp config", "postinstall": "vp config",
"fmt": "vp fmt", "fmt": "vp fmt",
"lint": "vp lint --type-aware", "lint": "vp lint --type-aware --type-check",
"check": "vp check",
"dev": "NODE_ENV=development bunx --bun vite", "dev": "NODE_ENV=development bunx --bun vite",
"build": "vite build", "build": "bunx --bun vite build",
"start": "bun run .output/server/index.mjs", "start": "bun run .output/server/index.mjs",
"preview": "bunx --bun vite preview", "preview": "bunx --bun vite preview",
"cli:dev": "bun run app/server/cli/main.ts", "cli:dev": "bun run app/server/cli/main.ts",

View file

@ -1,5 +1,5 @@
{ {
"include": ["app/**/*"], "include": ["app/**/*", "e2e/**/*", "playwright.config.ts"],
"compilerOptions": { "compilerOptions": {
"plugins": [{ "name": "@effect/language-service" }], "plugins": [{ "name": "@effect/language-service" }],
"lib": ["DOM", "DOM.Iterable", "ES2023"], "lib": ["DOM", "DOM.Iterable", "ES2023"],

View file

@ -51,6 +51,7 @@ export default defineConfig({
}, },
options: { options: {
typeAware: true, typeAware: true,
typeCheck: true,
}, },
rules: { rules: {
"no-unused-vars": [ "no-unused-vars": [
@ -78,7 +79,7 @@ export default defineConfig({
], ],
}, },
staged: { staged: {
"*.{js,jsx,ts,tsx,json,jsonc}": "vp fmt --write", "*.{js,jsx,ts,tsx,json,jsonc}": "vp check --fix",
}, },
run: { run: {
cache: { cache: {