Estou enfrentando problemas ao fazer o deploy da API no Vercel. Pesquisando um pouco, descobri que nesses casos é necessário utilizar o Vercel CLI e configurar o arquivo vercel.json
.
Ao executar o comando vercel
, recebo o seguinte erro:
vercel Vercel CLI 41.4.1 ❗️ The vercel.json file should be inside of the provided root directory. 🔍 Inspect: https://vercel.com/marcosasfigueiredos-projects/finsight-api/8HW1orL18afjY5ZPagqTQZfiyDqh [2s] ✅ Preview: https://finsight-mt4867ush-marcosasfigueiredos-projects.vercel.app [2s] Error: An unexpected error happened when running this build. We have been notified of the problem. If you have any questions, please contact Vercel Support https://vercel.com/help Error: Check your logs at https://finsight-mt4867ush-marcosasfigueiredos-projects.vercel.app/_logs or run vercel logs finsight-mt4867ush-marcosasfigueiredos-projects.vercel.app
Pelo erro, parece que o arquivo vercel.json
não está sendo encontrado no diretório correto ou há alguma configuração faltando.