Class: Builders::VercelUrl
- Inherits:
-
SiteBuilder
- Object
- SiteBuilder
- Builders::VercelUrl
- Defined in:
- lib/bridgetown-core/configurations/vercel/vercel_url.rb
Instance Method Summary collapse
Instance Method Details
#build ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/bridgetown-core/configurations/vercel/vercel_url.rb', line 4 def build hook :site, :pre_render do |site| next unless ENV["VERCEL_URL"] && ENV["VERCEL_ENV"] != "production" Bridgetown.logger.info("Subbing Vercel URL") site.config.update(url: "https://#{ENV["VERCEL_URL"]}") end end |