[BUG] 构建版本在运行时无法获取STRAPI_URL的环境变量 #29
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
问题概述/Summary
在构建版本,即使是已经设置了env: STRAPI_URL=,程序仍然会使用默认的localhost:1337作为strapi后端地址
重现步骤/Steps to Reproduce
启动构建版本,在浏览器控制台内输出日志中可以发现,项目调用后端地址为localhost:1337
预期结果/Expected Behavior
网站根据环境变量自动使用指定的URL
实际结果/Actual Behavior
网站固定使用localhost:1337
环境信息/Environment
No response
检查表/Checklist