LibreTV icon indicating copy to clipboard operation
LibreTV copied to clipboard

[BUG]部署到EdgeOne后_middleware.js不work

Open ashuai opened this issue 1 year ago • 7 comments

Self-check / 自查

  • [x] I have already cleard my browser cache / 我已经清除了浏览器缓存

Confirm / 确认

  • [x] I have searched the Issue and found no related issues / 我已经搜索过Issue,没有找到相关问题
  • [x] I am using the latest source from this repository / 我使用的是来自此仓库的最新版代码
  • [x] I provided information which does not include sensitive information / 我提供的信息里不包含敏感信息

BUG Description / BUG 描述

  1. 现象1:环境变量设置密码并重新部署后,没有弹出密码框
  2. 现象2:查看首页源码,底部{{PASSWORD}}并未被替换
  3. 尝试修改functions/_middleware.js文件增加 html = html + '<!-- test -->';,重新部署后首页并没有变化
  4. proxy访问baidu能正常工作

Expected Behavior / 预期行为

设置环境变量后能正常弹出密码框

Reproduction Steps / 复现步骤

部署,设置环境变量,重新部署

Console Log / 控制台日志

tailwindcss.min.js:64  cdn.tailwindcss.com should not be used in production. To use Tailwind CSS in production, install it as a PostCSS plugin or use the Tailwind CLI: https://tailwindcss.com/docs/installation
(匿名) @ tailwindcss.min.js:64
(匿名) @ tailwindcss.min.js:64
tv.ashuai.top/:1 [Intervention]Images loaded lazily and replaced with placeholders. Load events are deferred. See https://go.microsoft.com/fwlink/?linkid=2048113
version-check.js:53 通过代理服务器获取版本成功
version-check.js:66 当前版本: 202507110114
version-check.js:67 最新版本: 202507110114

Additional Information / 附加信息

No response

ashuai avatar Jul 12 '25 15:07 ashuai

确实 edgeone pages设置PASSWORD不生效 我还以为我哪里配置错了 删除重试还是不行

lcsoul avatar Jul 14 '25 08:07 lcsoul

确实 edgeone pages设置PASSWORD不生效 我还以为我哪里配置错了 删除重试还是不行

我以为是我操作问题,重试了好多次还是不生效.看来是通病

usherzhao avatar Jul 22 '25 11:07 usherzhao

期待能修复下这个问题

happytrudy avatar Jul 26 '25 03:07 happytrudy

期待能修复下这个问题

StartMoney avatar Jul 30 '25 07:07 StartMoney

期待作者大大修复 edgeone pages设置PASSWORD不生效的问题

418757092 avatar Jul 30 '25 17:07 418757092

设置环境变量不生效的问题还没修复吗

feiyd avatar Aug 06 '25 06:08 feiyd

+1

bwz2007 avatar Aug 11 '25 15:08 bwz2007