mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-26 06:47:17 +10:00
dev-server script sets canonical-root-url
This commit is contained in:
parent
6d6e3b9710
commit
1586685633
3 changed files with 3 additions and 3 deletions
|
|
@ -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"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
|
|
|||
|
|
@ -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\"
|
||||
]
|
||||
}
|
||||
"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue