[Unit]
Description=GNX-WEB Next.js Frontend
After=network.target

[Service]
Type=simple
User=gnx
Group=gnx
WorkingDirectory=/home/gnx/Desktop/GNX-WEB/frontEnd
Environment="NODE_ENV=production"
Environment="PORT=1087"
Environment="NEXT_TELEMETRY_DISABLED=1"
EnvironmentFile=/home/gnx/Desktop/GNX-WEB/frontEnd/.env.production
ExecStart=/usr/bin/npm start
Restart=always
RestartSec=10
StandardOutput=journal
StandardError=journal

[Install]
WantedBy=multi-user.target

