There is nothing runtime logs displayed in astro project

I have an astro website project. The homepage is successfully accessed, and clicking on one of the links generates a 404, but no runtime logs are generated.
The project url is https://astro-i18n.vercel.app/
Could you please help to find the problem, thanks

There’s another community post with 404 debugging tips that might be helpful. Please give these solutions a try and let us know how it goes.

A human should be around soon to offer more advice. But you can also get helpful information quickly by asking v0.

Hey, @tobetterxian! Welcome to the Vercel Community :wave:

In addition to the post above that may be helpful to you. Could you also review the following? It’ll help us and the rest of the community help you better. :pray:

It’s a simple project to test astro with i18n in vercel. The project is public in github. GitHub - tobetterxian/astro-i18n Please feel free to pull the code and reproduce the problem. When deploy to vercel, nothing runtime logs displayed whatever response error or not.

1 Like

Hi @tobetterxian, I tried cloning your project but I’m running into various issues even on the local machine. Can you confirm the latest code is working for you locally? Please share a screencast of what is the expected behavior.

Hi Anshuman,
Thanks for your response. I found if set output to server, the log will display properly. But for the 404 response page, still no log record. I have update the code to fix some issues so you can update the latedst code to reproduce the problem. Thanks again.
Attated the screencast for the homepage.

Hi @tobetterxian, I’'m using the main branch and even on the latest pull I am getting the errors locally.

Here’s what I’m seeing: https://share.cleanshot.com/Zt7hbdPL

Please fix all the errors locally and then see if Vercel works.

Also, you should check out the Deploy your Astro Site to Vercel | Docs guide.

Hi Anshuman
Thanks for your efforts. Your local behavior is in line with expectations. The question is, when an error occurs when clicking on the link inside, why is there no record in the vercel log?

Hi @tobetterxian, thanks for confirming.

Upon deploying I’m getting both the middleware and serverless function logs:

Let me know if you need more help.

Hi Anshuman
Thanks for your reponse.
When you click quote-1.md(zh),it response 404. But no log displayed in vercel.

Hi @tobetterxian, you don’t see logs because there is nothing available on that page, so it leads to a 404 error on Vercel.

I’d request you to make sure your code is correctly built and deployed. All application logs will come through in Vercel.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.