Remove og:image with status.im URL

And make it configurable, albeit only at buuld time, as hopefully
explained in the README.
This commit is contained in:
David Baker 2018-03-14 18:34:26 +00:00
parent aa54032500
commit 96f374ed69
3 changed files with 18 additions and 1 deletions

View file

@ -3,6 +3,9 @@ const webpack = require('webpack');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
let og_image_url = process.env.RIOT_OG_IMAGE_URL;
if (!og_image_url) og_image_url = 'https://riot.im/app/img/logos/riot-im-logo-1.png';
module.exports = {
entry: {
"bundle": "./src/vector/index.js",
@ -123,6 +126,9 @@ module.exports = {
// bottom of <head> or the bottom of <body>, and I'm a bit scared
// about moving them.
inject: false,
vars: {
og_image_url: og_image_url,
},
}),
],
devtool: 'source-map',