3eb92f472c
Read an optional ditto.json (or CONFIG_FILE env) at build time, validate it with Zod, and inject the result via Vite's define. At runtime the build-time values are merged between the hardcoded defaults and user localStorage, giving precedence: user > build-time > hardcoded. Extract canonical Zod schemas into config/schema.ts (no path aliases) so they can be imported from both vite.config.ts and runtime code. Move AppConfigSchema out of AppProvider into src/lib/schemas.ts to eliminate duplication.
50 lines
629 B
Plaintext
50 lines
629 B
Plaintext
# Logs
|
|
logs
|
|
*.log
|
|
npm-debug.log*
|
|
yarn-debug.log*
|
|
yarn-error.log*
|
|
pnpm-debug.log*
|
|
lerna-debug.log*
|
|
|
|
node_modules
|
|
dist
|
|
dist-ssr
|
|
*.local
|
|
yarn.lock
|
|
deploy.sh
|
|
|
|
# Editor directories and files
|
|
.idea
|
|
.DS_Store
|
|
.project
|
|
.settings/
|
|
*.suo
|
|
*.ntvs*
|
|
*.njsproj
|
|
*.sln
|
|
*.sw?
|
|
|
|
# Vercel
|
|
.vercel
|
|
|
|
# Secrets
|
|
.env
|
|
.env.*
|
|
!.env.example
|
|
|
|
# Build-time configuration
|
|
ditto.json
|
|
|
|
# Android build outputs and sensitive files
|
|
*.aab
|
|
resources/
|
|
android/app/my-upload-key.keystore
|
|
android/key.properties
|
|
android/local.properties
|
|
android/build/
|
|
android/.gradle/
|
|
android/*/build/
|
|
android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
|
|
android/downloads/
|