reactjs - Vercel 上的部署过程 - 与 CMS 相关的错误
问题描述
这是我第一次部署应用程序,我选择使用 Vercel 进行部署。这是一个 NextJS 应用程序,它使用 Prismic CMS 来获取数据。出于某种原因,在部署过程中,我收到与 cms 相关的错误。错误是:
18:37:44.594 > Build error occurred
18:37:44.595 Error: Unexpected status code [404] on URL https://undefined.prismic.io/api/v2
18:37:44.595 at /vercel/f2f729/node_modules/prismic-javascript/cjs/prismic-javascript.js:1093:25
18:37:44.595 at processTicksAndRejections (internal/process/task_queues.js:97:5) {
18:37:44.595 type: 'Error',
18:37:44.595 status: 404
18:37:44.595 }
18:37:44.620 error Command failed with exit code 1.
18:37:44.621 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
18:37:44.632 Error: Command "yarn run build" exited with 1
18:37:46.595 Done with "package.json"
我想知道如何解决这个问题,如果你们能给我一些与这个过程相关的建议和最佳实践,我会很高兴的。
解决方案
推荐阅读
- c# - HTTPS POST Web 服务请求格式 - 在子节点内插入多个值
- python - 正则表达式仅用于字符串中的数字?
- symfony - Symfony 中的 Materializecss 选择不起作用
- circleci - 从拉取请求触发 CircleCI 构建
- ios - 在基本折线图工具提示中添加额外数据。
- c# - 将 uint 从 c 移植到 c#
- javascript - 在 Javascript 中打开电子邮件客户端时捕获 URL
- swift - 执行 geocodeAddressString 两次(计算两个 CLLocations 之间的距离) - Swift 4
- java - 将点添加到 PDF Android
- sql - 为什么 >= '5/1/2018' 和 <= '5/1/2018' 的 SQL 查询只返回 2018-05-01 00:00:00 的行?