🔧 Update Next.js configuration and enhance Gitea deployment script

- Added serverRuntimeConfig to next.config.ts for improved server-side configuration.
- Updated gitea-deploy.sh to include additional environment variables for deployment.
- Increased sleep duration and health check timeout for better container readiness verification.
- Implemented checks to ensure the container is running during health checks and logs container status if it fails.

✅ Enhancements improve deployment reliability and server configuration management.
This commit is contained in:
denshooter
2025-09-13 23:37:53 +02:00
parent 116dac89b3
commit cc5009a0d6
4 changed files with 280 additions and 13 deletions
+5 -8
View File
@@ -10,6 +10,11 @@ const nextConfig: NextConfig = {
output: 'standalone',
outputFileTracingRoot: path.join(__dirname, '../../'),
// Ensure proper server configuration
serverRuntimeConfig: {
// Will only be available on the server side
},
// Optimize for production
compress: true,
poweredByHeader: false,
@@ -23,14 +28,6 @@ const nextConfig: NextConfig = {
env: {
NEXT_PUBLIC_BASE_URL: process.env.NEXT_PUBLIC_BASE_URL
},
serverRuntimeConfig: {
GHOST_API_URL: process.env.GHOST_API_URL,
GHOST_API_KEY: process.env.GHOST_API_KEY,
MY_EMAIL: process.env.MY_EMAIL,
MY_INFO_EMAIL: process.env.MY_INFO_EMAIL,
MY_PASSWORD: process.env.MY_PASSWORD,
MY_INFO_PASSWORD: process.env.MY_INFO_PASSWORD
},
// Performance optimizations
experimental: {