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

【环境变量配置】单页文章设置出现问题 #2422

Open
Schemer0520 opened this issue May 17, 2024 · 0 comments
Open

【环境变量配置】单页文章设置出现问题 #2422

Schemer0520 opened this issue May 17, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Schemer0520
Copy link

描述bug
通过修改"POSTS_PER_PAGE: process.env.NEXT_PUBLIC_POST_PER_PAGE || 8, // post counts per page"并配置环境变量NEXT_PUBLIC_POST_PER_PAGE均无法改变页面的文章数。
屏幕截图 2024-05-17 140753
屏幕截图 2024-05-17 140320
屏幕截图 2024-05-17 140244
只有在notion的“配置中心”修改参数"POSTS_PER_PAGE"才能真正改变每页的文章数。
屏幕截图 2024-05-17 140451
屏幕截图 2024-05-17 140345

期望的正常结果
正常情况修改NEXT_PUBLIC_POST_PER_PAGE环境变量应当可以修改单页文章数。

复现步骤
修改"POSTS_PER_PAGE: process.env.NEXT_PUBLIC_POST_PER_PAGE || 8, // post counts per page"中"NEXT_PUBLIC_POST_PER_PAGE"为8,或者后面数字为8,无法改变单页文章数。

环境

  • NotionNext版本 4.5.3
  • 主题 hexo
  • 部署方案 vercel
  • 操作系统:windows
  • 浏览器 chrome
@Schemer0520 Schemer0520 added the bug Something isn't working label May 17, 2024
@tangly1024 tangly1024 changed the title 单页文章设置出现问题 【环境变量配置】单页文章设置出现问题 May 17, 2024
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

No branches or pull requests

2 participants