这是indexloc提供的服务,不要输入任何密码
Skip to content

Robots.txt not routing #36

@fsmythe

Description

@fsmythe

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions