这是我第一次部署应用程序,因此选择使用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"
我想知道如何解决这个问题,如果你们能给我一些与此过程有关的建议和最佳实践,我会很高兴的。