[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"problem-detail-error-npm-warn-deprecated-vue-i18n-v9-and-v10":3},{"stack":4,"error":5,"seoName":6,"seoStack":7,"seo":8,"breadcrumb":10,"titlePrefix":18,"titleAccent":19,"lead":20,"facts":23,"why":38,"log":48,"fix":81,"engine":94,"related":102,"pitch":124},"php","npm-warn-deprecated-vue-i18n-v9-and-v10","Frontend build failed because .env.production is missing","Php, Vite",{"description":9},"Learn what causes Frontend build failed because .env.production is missing, how PanelAlpha Engine responds to it during deployment.",[11,14,17],{"label":12,"href":13},"App Installations","\u002Fapps",{"label":15,"href":16},"Php","\u002Fapps\u002Fstacks\u002Fphp",{"label":6},"Frontend build failed because ",".env.production is missing",[21],{"text":22},"Error recorded 6 times in PanelAlpha Engine deploys on Php, Vite. The deploy log below is the recorded failure output.",[24,29,32,34],{"label":25,"value":26,"tone":27,"tooltip":28},"Type","Error","err","An 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.",{"label":30,"value":31},"Seen","6 times · 5 variants",{"label":33,"value":7},"Where",{"label":35,"value":36,"tooltip":37},"Status","Observed (2.1.0)","Our team will look into this soon, verify the cause and try to fix it in an upcoming release.",{"heading":39,"body":40},"Why it happens",[41,43,46],{"text":42},"The PHP deployment also builds the repository’s Vite frontend. Its static-copy plugin is configured to copy ",{"text":44,"code":45},"\u002Fapp\u002F.env.production",true,{"text":47},", 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.",{"heading":49,"block":50},"What the log looks like",{"header":51,"lines":52},"Deploy log",[53,57,61,65,69,73,77],{"segments":54},[55],{"text":56},"[panelalpha] build: assets",{"segments":58},[59],{"text":60},"> digiflashcards@0.9.1 build",{"segments":62},[63],{"text":64},"> vite build",{"segments":66},[67],{"text":68},"[log] vite v8.1.5 building client environment for production...",{"segments":70},[71],{"text":72},"[error] ✗ Build failed in 1.06s",{"segments":74},[75],{"text":76},"[plugin vite-plugin-static-copy:build]",{"segments":78},[79],{"text":80},"Error: No file was found to copy on \u002Fapp\u002F.env.production src.",{"heading":82,"steps":83,"block":91},"How to fix it",[84],[85,87,89],{"text":86},"Provide ",{"text":88,"code":45},".env.production",{"text":90}," in the application build context, using the project’s documented values and secrets, or configure the deployment environment to generate it before the asset build. Alternatively, update the Vite static-copy configuration so the file is optional or remove that copy rule if the application does not need the file. Redeploy after confirming the file is available inside the build.",{"header":92,"lines":93},"Fix by hand",[],{"heading":95,"body":96,"block":99},"How PanelAlpha Engine solves it",[97],{"text":98},"Detect the missing static-copy source as the primary failure and surface the expected path clearly. Because this PHP project also contains Node\u002FVite assets, report the frontend build failure separately from Composer warnings and preserve the complete underlying error rather than a truncated signature.",{"header":100,"lines":101},"",[],{"heading":103,"items":104},"Apps affected",[105,109,112,115,118,121],{"title":106,"badge":107,"tone":27,"href":108},"Digiflashcards","1 occurrence","\u002Fapps\u002Fcodeberg.org\u002Fladigitale\u002Fdigiflashcards",{"title":110,"badge":107,"tone":27,"href":111},"Digiscreen","\u002Fapps\u002Fcodeberg.org\u002Fladigitale\u002Fdigiscreen",{"title":113,"badge":107,"tone":27,"href":114},"Digislides","\u002Fapps\u002Fcodeberg.org\u002Fladigitale\u002Fdigislides",{"title":116,"badge":107,"tone":27,"href":117},"Digisteps","\u002Fapps\u002Fcodeberg.org\u002Fladigitale\u002Fdigisteps",{"title":119,"badge":107,"tone":27,"href":120},"digibunch","\u002Fapps\u002Fcodeberg.org\u002Fladigitale\u002Fdigibunch",{"title":122,"badge":107,"tone":27,"href":123},"ladigitale\u002Fdigiwords","\u002Fapps\u002Fcodeberg.org\u002Fladigitale\u002Fdigiwords",{"heading":125,"body":126,"footNote":127,"docsLabel":128,"docsHref":129},"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 CPU","Read the documentation","https:\u002F\u002Fpanelalpha.com\u002Fdocs"]