Skip to content

Commit

Permalink
Merge pull request #98 from casper-network/dynamic-robots-file
Browse files Browse the repository at this point in the history
MODIFIED: dynamic robots delivery
  • Loading branch information
sd-ditoy authored Aug 8, 2024
2 parents f091429 + 33cf3c1 commit 8cc083d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 4 additions & 0 deletions docker/nginx-default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ server {
proxy_pass https://backend.casper.network/cce/sitemap;
}

location /robots.txt {
proxy_pass https://backend.casper.network/cce/robots;
}

location @prerender {
ssi on;
set $prerender 0;
Expand Down
3 changes: 0 additions & 3 deletions public/robots.txt

This file was deleted.

6 changes: 6 additions & 0 deletions vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ module.exports = {
devServer: {
public: '0.0.0.0:8080',
disableHostCheck: true,
proxy: {
'/robots.txt': {
target: 'http://0.0.0.0:8055/cce/robots',
pathRewrite: { 'robots.txt': '' },
},
},
},
pluginOptions: {
i18n: {
Expand Down

0 comments on commit 8cc083d

Please sign in to comment.