[Unit]
Description=CVE Dashboard Frontend (React Dev Server)
After=network.target cve-backend.service

[Service]
Type=simple
WorkingDirectory=/home/cve-dashboard/frontend
ExecStart=/usr/bin/npm start
Restart=on-failure
RestartSec=5
EnvironmentFile=/home/cve-dashboard/frontend/.env
Environment=BROWSER=none
StandardOutput=append:/home/cve-dashboard/frontend/frontend.log
StandardError=append:/home/cve-dashboard/frontend/frontend.log

[Install]
WantedBy=multi-user.target
