Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

Commit

Permalink
Add Jekyll plugin to fix deploy previews
Browse files Browse the repository at this point in the history
  • Loading branch information
kaicataldo committed Jul 6, 2019
1 parent e5e3b08 commit 9139219
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions _plugins/env_vars.rb
@@ -0,0 +1,7 @@
module Jekyll
class EnvironmentVariablesGenerator < Generator
def generate(site)
site.config['url'] = ENV['DEPLOY_PRIME_URL'] || site.config['url']
end
end
end

0 comments on commit 9139219

Please sign in to comment.