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

【腾讯云部署】也出了托管服务pages请大佬出一个部署方案 #2931

Open
chen-chenglong opened this issue Nov 6, 2024 · 3 comments · Fixed by #2957
Open
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@chen-chenglong
Copy link

腾讯云的page注册地址:
注册:https://edgeone.ai/register

相关的介绍:
https://mp.weixin.qq.com/s/LdE-bNPttF6d8sDEvsgKuw

我已经按照这个捕捉添加了fork的仓,但是最后一步部署就出错了,请大佬看看。

PixPin_2024-11-06_21-50-42

@chen-chenglong chen-chenglong added the enhancement New feature or request label Nov 6, 2024
@88lin
Copy link

88lin commented Nov 10, 2024

EO Pages 采用的就是普通 EO 国际节点,境内速度也就那样,非常慢的,不建议

@chen-chenglong
Copy link
Author

速度不是飞快,但也是可以的。主要是 usage 不限量。

@tangly1024 tangly1024 changed the title 腾讯云也出了托管服务pages请大佬出一个部署方案 【腾讯云部署】也出了托管服务pages请大佬出一个部署方案 Nov 13, 2024
@tangly1024 tangly1024 added the good first issue Good for newcomers label Nov 13, 2024
@tangly1024 tangly1024 linked a pull request Nov 13, 2024 that will close this issue
@tangly1024 tangly1024 reopened this Nov 13, 2024
@tangly1024
Copy link
Owner

tangly1024 commented Nov 13, 2024

试了一下,卡在最后一步,找不到输出目录。
image

对比以往CloudFlare部署的经验,推测是只支持静态导出方案

我用EdgeOne内置的nextjs项目模板试了一下,能部署,而这个示例项目的配置是静态导出的。


/** @type {import('next').NextConfig} */
const nextConfig = {
  output: 'export',
};

export default nextConfig;

解决

将 编译命令 从 npm run build 改成 npm run export 即可
image

image

这可能就是usage不限量的原因:

速度不是飞快,但也是可以的。主要是 usage 不限量。

静态导出的方案是几乎不消耗云计算资源的,这种部署方案在vercel\netlify\cloudflare等其它云平台也支持并且免费。

展望

等将来EdgeOne支持动态部署的时候可以再试试
相关教程:
https://docs.tangly1024.com/article/deploy-notion-next-with-edge-one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants