From ebd35a88fb6daf785f105da772710aec576f4b50 Mon Sep 17 00:00:00 2001 From: Kaj Kowalski Date: Tue, 10 Jun 2025 00:25:17 +0200 Subject: [PATCH] chore: remove development environment settings and documentation --- .env.development | 9 ------- .gitignore | 20 +++++++++++++++ DEVELOPMENT.md | 64 ------------------------------------------------ 3 files changed, 20 insertions(+), 73 deletions(-) delete mode 100644 .env.development delete mode 100644 DEVELOPMENT.md diff --git a/.env.development b/.env.development deleted file mode 100644 index da2f1f6..0000000 --- a/.env.development +++ /dev/null @@ -1,9 +0,0 @@ -# Development environment settings -# This file ensures NextAuth always has necessary environment variables in development - -# NextAuth.js configuration -NEXTAUTH_URL=http://192.168.1.2:3000 -NEXTAUTH_SECRET=this_is_a_fixed_secret_for_development_only -NODE_ENV=development - -# Database connection - already configured in your prisma/schema.prisma diff --git a/.gitignore b/.gitignore index ce971ba..43189da 100644 --- a/.gitignore +++ b/.gitignore @@ -33,6 +33,12 @@ yarn-error.log* # vercel .vercel +# Cloudflare Workers +.dev.vars +wrangler.toml.local +.wrangler/ +.open-next/ + # typescript *.tsbuildinfo next-env.d.ts @@ -218,6 +224,12 @@ yarn-error.log* # vercel .vercel +# Cloudflare Workers +.dev.vars +wrangler.toml.local +.wrangler/ +.open-next/ + # typescript *.tsbuildinfo next-env.d.ts @@ -227,6 +239,9 @@ next-env.d.ts *.db-shm *.db-wal *.sqlite? +*.sqlite +*.sqlite3 +prisma/dev.db # IDE .vscode/* @@ -448,3 +463,8 @@ build/ .dev.vars* test-transcript-format.js my-next-app/ + +# Wiki +.wiki/ + +.specstory/ diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md deleted file mode 100644 index 18481f1..0000000 --- a/DEVELOPMENT.md +++ /dev/null @@ -1,64 +0,0 @@ -# LiveDash-Node Development Guide - -## Simplified Development Setup - -This project has been simplified to use **ONE environment** for local development to avoid confusion. - -### Quick Start - -1. **Start Development Server** - - ```bash - pnpm run dev - ``` - - This starts Next.js on http://localhost:3000 with full authentication and dashboard. - -2. **Login Credentials** - - Email: `admin@example.com` - - Password: `admin123` - -### Development vs Production - -- **Development**: `pnpm run dev` - Next.js app using local D1 database -- **Production**: Cloudflare Workers with remote D1 database - -### Environment Files - -- `.env.local` - Local development (Next.js) -- `.dev.vars` - Cloudflare Workers development (only needed for `pnpm run dev:cf`) - -### Database - -- **Local Development**: Uses the same D1 database that Wrangler creates locally -- **Production**: Uses remote Cloudflare D1 database - -### Key Commands - -```bash -# Start development (recommended) -pnpm run dev - -# Test Cloudflare Workers deployment locally (optional) -pnpm run dev:cf - -# Deploy to production -pnpm run deploy - -# Database migrations -pnpm run seedLocalD1 # Apply migrations to local D1 -pnpm run predeploy # Apply migrations to remote D1 -``` - -### Auth.js v5 Migration Complete - -✅ Migrated from NextAuth v4 to Auth.js v5 -✅ Updated all API routes and authentication flows -✅ Configured for both development and production environments -✅ Using Cloudflare D1 database with proper Auth.js v5 tables - -### Troubleshooting - -- If login doesn't work, ensure the local D1 database is set up: `pnpm run seedLocalD1` -- If you see CSRF errors, try using Chrome instead of VS Code's browser -- For any auth issues, check the console logs and verify environment variables