mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
fix https prerender host issue
This commit is contained in:
parent
452e521ee9
commit
a2c77429e0
1 changed files with 4 additions and 3 deletions
|
@ -1,11 +1,12 @@
|
|||
if (Settings.get('prerenderIOToken')) {
|
||||
|
||||
|
||||
var siteUrl = Settings.get('siteUrl') || Meteor.absoluteUrl();
|
||||
var protocol = siteUrl.indexOf('https') !== -1 ? 'https' : 'http'
|
||||
var protocol = siteUrl.indexOf('https') !== -1 ? 'https' : 'http';
|
||||
var host = siteUrl.replace(/https?:\/\//, '').replace('/', '');
|
||||
|
||||
var prerender = Npm.require('prerender-node')
|
||||
.set('protocol', protocol)
|
||||
.set('host', siteUrl.replace('http://', '').replace('/', ''))
|
||||
.set('host', host)
|
||||
.set('prerenderToken', Settings.get('prerenderIOToken'));
|
||||
|
||||
Meteor.startup(function() {
|
||||
|
|
Loading…
Add table
Reference in a new issue