dev-server script sets canonical-root-url

This commit is contained in:
Vesa Luusua 2017-10-05 14:58:27 +03:00
parent 6d6e3b9710
commit 1586685633
3 changed files with 3 additions and 3 deletions

View file

@ -57,7 +57,7 @@
"test-ci": "sharetribe-scripts test --env=jsdom --runInBand",
"eject": "sharetribe-scripts eject",
"start": "node server/index.js",
"dev-server": "yarn run build&&nodemon --watch server server/index.js",
"dev-server": "REACT_APP_CANONICAL_ROOT_URL=http://localhost:4000 yarn run build&&nodemon --watch server server/index.js",
"heroku-prebuild": "./heroku-copy-ssh-key-from-env.sh",
"heroku-postbuild": "yarn run build"
},

View file

@ -188,7 +188,7 @@ const stripeSupportedCountries = [
];
// Canonical root url is needed in social media sharing and SEO optimization purposes.
const canonicalRootURL = process.env.REACT_APP_CANONICAL_ROOT_URL || 'https://localhost:3000';
const canonicalRootURL = process.env.REACT_APP_CANONICAL_ROOT_URL || 'http://localhost:3000';
// Site title is needed in meta tags (bots and social media sharing reads those)
const siteTitle = 'Saunatime';

View file

@ -20,7 +20,7 @@ exports[`LandingPage matches snapshot 1`] = `
\"description\": \"LandingPage.schemaDescription\",
\"name\": \"LandingPage.schemaTitle\",
\"image\": [
\"https://localhost:3000/saunatimeFacebook-1200x630.jpg\"
\"http://localhost:3000/saunatimeFacebook-1200x630.jpg\"
]
}
"