#please help
1 messages · Page 1 of 1 (latest)
I'm sorry, but your question is a bit vague. Could you please provide more details about the error you're encountering with a .txt file in your Next.js project?
Here are a few things you might want to check based on the information available:
-
If you're trying to access a
.txtfile in your Next.js project and getting a 404 error, it might be due to the file not being properly handled in static deploys. As mentioned in this Github issue (https://github.com/vercel/next.js/issues/62740),.txtfiles are not supposed to be cached by the browser and CDN, just like.htmlfiles. -
If you're seeing errors related to
.txtfiles during the build or deployment process, it could be due to the way Next.js handles certain files. For instance, Vercel CLI automatically ignores several files for security and performance reasons during deployments. If the.txtfile was accidentally committed to Git, you can remove it using the commands provided in this Vercel documentation (https://vercel.com/docs/errors/error-list#git-default-ignore-list). -
If you're trying to generate a sitemap in
.txtformat and encountering issues, it might be due to the strict format requirements of XML. As discussed in this Github issue (https://github.com/vercel/next.js/issues/66363), you can validate your sitemap using online validators or the Google console.
Please provide more details so I can give a more accurate answer.
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
Let me check the knowledge base for you. One moment! :books:
Sorry @obtuse spoke, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist:
Perhaps try again in 15mins?
Let me check the knowledge base for you. One moment! :books: