Frontend build failed because .env.production is missing

Error recorded 6 times in PanelAlpha Engine deploys on Php, Vite. The deploy log below is the recorded failure output.

Seen6 times · 5 variants
WherePhp, Vite

Why it happens

The PHP deployment also builds the repository’s Vite frontend. Its static-copy plugin is configured to copy /app/.env.production, but that file was not present during the build. The earlier deprecation and script-tag messages are warnings; the missing file is the build-stopping error.

What the log looks like

Deploy log
[panelalpha] build: assets> [email protected] build> vite build[log] vite v8.1.5 building client environment for production...[error] ✗ Build failed in 1.06s[plugin vite-plugin-static-copy:build]Error: No file was found to copy on /app/.env.production src.

Try PanelAlpha Engine yourself.

The easiest way to turn your server into a safe, controlled environment for your AI agent. Deploy, manage and maintain any project from Claude Code, Cursor, Codex or any other MCP client. Open source under Apache 2.0, free to run.

Requires Ubuntu 24.04 or 26.04 · 2 GB RAM · 1 CPURead the documentation