これは、ドメインを要求するときに実行されるアプリ (http://site.com) のルートです。この http サーバーを使用して要求される robots.txt (http://site.com/robots.txt) というファイルを 1 つだけ追加したい場合、どのようにすればよいですか? robots.txt の内容から取得し、エコーします。
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/html'});
res.write('homepage');
res.end('');
}).listen(process.env.VMC_APP_PORT || 1337, null);
ありがとう