From dc627cf1db6918416c3ef62540a70b1b184fae33 Mon Sep 17 00:00:00 2001 From: Remco <1+remco@noreply.gitlabi@epicnabbo.nl> Date: Sat, 18 Jul 2026 15:44:07 +0200 Subject: [PATCH] Update .gitea/workflows/deploy.yaml --- .gitea/workflows/deploy.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 364a1ae8..62a4fb89 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -54,9 +54,11 @@ jobs: pnpm prisma:generate # 6. Next.js Build (Standalone Mode for Next.js 16 + Turbopack) + # SKIP_ENV_VALIDATION=true prevents Zod from crashing on database URL formatting characters (like %40) during build time export NEXT_DISABLE_SOURCEMAPS=1 export NEXT_TELEMETRY_DISABLED=1 export UV_THREADPOOL_SIZE=2 + export SKIP_ENV_VALIDATION=true pnpm build # 6b. Configure Standalone Bundle Paths @@ -66,6 +68,8 @@ jobs: cp -r .next/static .next/standalone/.next/ # Copy the core Prisma directory to the standalone node_modules to ensure database actions work cp -r node_modules/@prisma .next/standalone/node_modules/ 2>/dev/null || true + # Explicitly sync your live configuration environment file into the standalone folder + cp .env .next/standalone/.env # 7. Correct file ownership and permissions for the www-data web server user sudo chown -R www-data:www-data /var/www/atom-nexst/