Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Fix #2806, remove robots.txt and replace with meta noindex
Browse files Browse the repository at this point in the history
Fixes #2774, making Twitter cards work again
Invalidates #2805
  • Loading branch information
ianb committed May 4, 2017
1 parent 5557426 commit 1c6efd6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions server/src/pages/shot/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ class Head extends React.Component {
if (expired) {
return (
<reactruntime.HeadTemplate {...this.props}>
<meta name="robots" content="noindex" />
<script src={ this.props.staticLink("/static/js/wantsauth.js") } />
<script src={ this.props.staticLink("/static/js/shot-bundle.js") } async />
<link rel="stylesheet" href={ this.props.staticLink("/static/css/frame.css") } />
Expand Down
5 changes: 0 additions & 5 deletions server/src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,11 +383,6 @@ app.get("/favicon.ico", function(req, res) {
res.redirect(301, "/static/img/icon-32.png");
});

app.get("/robots.txt", function(req, res) {
res.header("Content-Type", "text/plain");
res.send("User-agent: *\nDisallow: /\n");
});

app.post("/error", function(req, res) {
let bodyObj = req.body;
if (typeof bodyObj !== "object") {
Expand Down

0 comments on commit 1c6efd6

Please sign in to comment.