Update Next.js to version 15.4.2 and refactor invoice pages

- Upgrade Next.js and related packages for improved performance and security
- Refactor invoice-related pages to streamline navigation and enhance user experience
- Consolidate invoice editing and viewing functionality into a single page
- Remove deprecated edit page and implement a new view page for invoices
- Update links and routing for consistency across the dashboard
This commit is contained in:
2025-08-11 22:37:40 -04:00
parent a270f6c1e5
commit 543c553786
17 changed files with 402 additions and 1318 deletions

47
docker-compose.yml Normal file
View File

@@ -0,0 +1,47 @@
services:
db:
image: postgres:16-alpine
container_name: beenvoice-db
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
volumes:
- beenvoice_pg_data:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U beenvoice"]
interval: 5s
timeout: 5s
retries: 10
app:
build:
context: .
dockerfile: Dockerfile
image: beenvoice-app:latest
container_name: beenvoice-app
depends_on:
db:
condition: service_healthy
environment:
NODE_ENV: production
# no memory constraint
AUTH_SECRET: ${AUTH_SECRET}
RESEND_API_KEY: ${RESEND_API_KEY}
RESEND_DOMAIN: ${RESEND_DOMAIN}
DATABASE_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}
DB_DISABLE_SSL: "true"
PORT: ${PORT}
HOSTNAME: 0.0.0.0
SKIP_ENV_VALIDATION: "1"
ports:
- "${PORT:-3000}:3000"
restart: unless-stopped
volumes:
beenvoice_pg_data:
driver: local