diff --git a/package.json b/package.json index 58e4a866..df1dfb26 100644 --- a/package.json +++ b/package.json @@ -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" }, diff --git a/src/config.js b/src/config.js index 5df95ea8..8f5ac9b8 100644 --- a/src/config.js +++ b/src/config.js @@ -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'; diff --git a/src/containers/LandingPage/__snapshots__/LandingPage.test.js.snap b/src/containers/LandingPage/__snapshots__/LandingPage.test.js.snap index 2124c495..8f581e50 100644 --- a/src/containers/LandingPage/__snapshots__/LandingPage.test.js.snap +++ b/src/containers/LandingPage/__snapshots__/LandingPage.test.js.snap @@ -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\" ] } "