Repository navigation
Develop #71
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
Develop #71
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,8 @@ | ||||||
| { | ||||||
| "rewrites": [ | ||||||
| { | ||||||
| "source": "/api/(.*)", | ||||||
| "destination": "http://jobsglobalscraper.ddns.net/api/$1" | ||||||
|
||||||
| "destination": "http://jobsglobalscraper.ddns.net/api/$1" | |
| "destination": "https://jobsglobalscraper.ddns.net/api/$1" |
Copilot
AI
Apr 7, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Já existe um frontend/vercel.json com o mesmo conteúdo. Manter duas configs de Vercel em locais diferentes tende a causar drift/confusão sobre qual arquivo é efetivamente usado (depende do Root Directory configurado no projeto Vercel). Sugestão: consolidar em um único local e remover o duplicado, ou documentar explicitamente qual diretório é o root do deploy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
readPayloadtenta fazerresponse.json()quando ocontent-typeestá vazio e, se o parse falhar, faz fallback pararesponse.text(). Emfetch, ler o body viajson()consome o stream; após uma exceção de parse normalmente não é possível ler o body novamente, então o fallback tende a não funcionar. Sugestão: ler o body uma única vez viatext()e então fazerJSON.parsequando apropriado, ou usarresponse.clone()antes de tentarjson()para preservar o body para o fallback.