mirror of
https://github.com/kjanat/livedash-node.git
synced 2026-01-16 10:12:09 +01:00
chore: remove development environment settings and documentation
This commit is contained in:
@ -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
|
||||
20
.gitignore
vendored
20
.gitignore
vendored
@ -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/
|
||||
|
||||
@ -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
|
||||
Reference in New Issue
Block a user