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.
TypeErrorAn error that occurred in the deployed application. It is not necessarily a PanelAlpha Engine error, but we keep working on improvements so you run into fewer of them.
Seen6 times · 5 variants
WherePhp, Vite
StatusObserved (2.1.0)Our team will look into this soon, verify the cause and try to fix it in an upcoming release.
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.