Skip to content
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

Robots.txt not routing #36

Open
fsmythe opened this issue Dec 3, 2024 · 1 comment
Open

Robots.txt not routing #36

fsmythe opened this issue Dec 3, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@fsmythe
Copy link

fsmythe commented Dec 3, 2024

Describe the bug
Hi, thanks for the template, really great stuff. I've got everything working perfectly however the robots.txt doesn't seem accessible either by me or crawlers (google etc).

Error I get locally:
image

Error I get on live site:
image

The logs:
image

TypeError: Cannot read properties of undefined (reading 'body') at g (/var/task/.next/server/app/[locale]/[authors]/page.js:1:15873) at eh (/var/task/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:134786) at e (/var/task/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:137671) at ek (/var/task/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:138145) at Array.toJSON (/var/task/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:135755) at stringify (<anonymous>) at eR (/var/task/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:142219) at eE (/var/task/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:142698) at Timeout._onTimeout (/var/task/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:135475) at listOnTimeout (node:internal/timers:581:17) { digest: '3283440806' }

Expected behavior
Expect to able to see the robots.txt and for indexers to crawl it

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Thanks!

@fsmythe fsmythe added the bug Something isn't working label Dec 3, 2024
@PxlSyl
Copy link
Owner

PxlSyl commented Dec 10, 2024

Hi! I'll prob need to update it all to Next 15 + etc. But if you find a solution for this, please make a PR and let me know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants