# NOTE: VITE_* variables are embedded into the JS bundle at build time by Vite.
# They cannot be changed at runtime without rebuilding the image.
#
# To deploy with a different API URL, rebuild the image with:
#   docker build --build-arg VITE_API_URL=https://api.yourdomain.com \
#                --build-arg VITE_APP_NAME="My Admin Panel" \
#                -t your-registry/ecommerce-admin-panel:latest .
#
# This ConfigMap is provided for documentation and to store non-build-time
# configuration such as nginx tuning or future runtime injection.
apiVersion: v1
kind: ConfigMap
metadata:
  name: ecommerce-admin-panel-config
  namespace: ecommerce
  labels:
    app: ecommerce-admin-panel
data:
  VITE_APP_NAME: "VC E-Commerce Admin Panel"
  # VITE_API_URL must be set at build time — see note above
