Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【伪静态】升级后开启无法载入页面 #2467

Closed
vicacheung opened this issue Jun 3, 2024 · 1 comment · Fixed by #2468
Closed

【伪静态】升级后开启无法载入页面 #2467

vicacheung opened this issue Jun 3, 2024 · 1 comment · Fixed by #2468
Assignees
Labels
bug Something isn't working

Comments

@vicacheung
Copy link

vicacheung commented Jun 3, 2024

描述bug
原来版本是4.4.6,开启了伪静态,路径前缀设置为空(就是 process.env.NEXT_PUBLIC_POST_URL_PREFIX || '');
5月31日升级到4.5.3后打开页面一直显示Loading...,如果加上路径前缀可以打开post文章,其他page单页打不开。
经过几天测试,发现只要在blog.config关闭伪静态就可以正常打开,与其他配置无关。

image

期望的正常结果
【此项必填】
跟升级前一样,可以正常打开文章、单页

复现步骤
【此项必填】
blog.config中设置PSEUDO_STATIC: process.env.NEXT_PUBLIC_PSEUDO_STATIC || true

环境

  • 【必填】NotionNext版本 [4.5.3、4.5.4]
  • 【必填】主题 [hexo]
  • 【必填】部署方案 [vercel]
  • 【可选】操作系统: [例如. iOS, Android, macOS, windows]
  • 【可选】浏览器 [例如. chrome, safari, firefox]

补充说明
如果加上路径前缀可以打开post文章,其他page单页打不开

@vicacheung vicacheung added the bug Something isn't working label Jun 3, 2024
@tangly1024 tangly1024 changed the title 升级后开启伪静态无法载入页面 【伪静态】升级后开启无法载入页面 Jun 4, 2024
@vicacheung
Copy link
Author

现在可以打开,感谢!
但是打开后再刷新,页面的伪静态就失效了(从伪静态URL跳转到了原始URL)。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants