feat: initial commit — tcb_devportal Next.js app
Some checks failed
homelab-k8s-services/tcb_devportal/pipeline/head There was a failure building this commit
Some checks failed
homelab-k8s-services/tcb_devportal/pipeline/head There was a failure building this commit
Includes Helm chart (tcb-devportal), Jenkinsfile with homelab CI pipeline, and Next.js app source.
This commit is contained in:
22
docker-entrypoint.sh
Normal file
22
docker-entrypoint.sh
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
echo "🔧 Generating runtime env config..."
|
||||
|
||||
ENV_FILE="/app/public/env.js"
|
||||
|
||||
cat <<EOF > $ENV_FILE
|
||||
window.__ENV__ = {
|
||||
NEXT_PUBLIC_ENVIRONMENT: "${NEXT_PUBLIC_ENVIRONMENT}",
|
||||
NEXT_PUBLIC_BACK_END_DOMAIN: "${NEXT_PUBLIC_BACK_END_DOMAIN}",
|
||||
NEXT_PUBLIC_TIME_OUT_API: "${NEXT_PUBLIC_TIME_OUT_API}",
|
||||
NEXT_PUBLIC_RECAPTCHA_SITE_KEY: "${NEXT_PUBLIC_RECAPTCHA_SITE_KEY}"
|
||||
};
|
||||
EOF
|
||||
|
||||
echo "✅ Generated $ENV_FILE:"
|
||||
cat $ENV_FILE
|
||||
|
||||
echo "🚀 Starting Next.js..."
|
||||
exec "$@"
|
||||
|
||||
Reference in New Issue
Block a user