Experience-Monks/nextjs-boilerplate

[Bug] fix robots generator

DonghyukJacobJang opened this issue · 1 comments

Describe the bug

The commend npm run build:prod:static, it does not generate robots.txt and sitemap.xml.

To Reproduce

Run the commend npm run build:prod:static locally, and check out folder.

Screenshots

Expected behaviour

  1. Running npm run build:develop:static or npm run build:staging:static should use the default robots.txt file that is stored in public folder
  2. Running npm run build:prod:static must generate robots.txt for PROD use only from the robots-txt-generator script.

Environment

Run the below command and paste the result here:

npx envinfo --system --npmPackages react* --binaries --npmGlobalPackages react* --browsers

Additional context