robots-txt script removed: public folder is serving natively

This commit is contained in:
tmshv committed 2019-11-23 22:30:11 +03:00
1 parent a0e92e066f
commit 569e775185
2 files changed
+1 -7

No files matched your search

+1 -2
View File
@@ -8,8 +8,7 @@
"start": "NODE_ENV=production node src/server.js",
"dev": "ts-node --project server.tsconfig.json src/server.ts",
"next-dev": "next dev",
"build": "next build && next export -o dist && npm run sitemap && npm run feed && npm run robots-txt",
"robots-txt": "node scripts/robots-txt.js",
"build": "next build && next export -o dist && npm run sitemap && npm run feed",
"sitemap": "node scripts/sitemap.js",
"feed": "node scripts/feed.js",
"test": "mocha --compilers js:babel-register"
-5
View File
@@ -1,5 +0,0 @@
const fs = require('fs').promises;
(async () => {
await fs.copyFile('public/robots.txt', 'dist/robots.txt')
})()