-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
openGraph new option: path #43
Comments
I do have a workaround for this if anyone is interested: // env.development
GATBSY_DOMAIN="http://localhost:8000"
// gatsby-config.js
require('dotenv').config({
path: `.env.development`,
})
...
{
url: `${process.env.GATBSY_DOMAIN}/images/socials.png`
} Then set the env variable to the right domain when you deploy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Hi, when adding images to openGraph, right now we can use the
url
option.It would be nice to allow for relative paths with a
path
option.I know that it's currently possible by adding the domain used with the project. But manually adding the domain doesn't work well with multiple environments (staging.domain.com, domain.com, localhost, ...).
The text was updated successfully, but these errors were encountered: