Skip to content

Commit

Permalink
Point /api/event to Cloudfront URL
Browse files Browse the repository at this point in the history
  • Loading branch information
etagwerker committed Oct 30, 2024
1 parent 50dde9b commit e0aa808
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/layouts/application.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
= javascript_importmap_tags
- if Rails.env.production?
-# Use the asset host for the API URL, since the Plausible Cloudfront worker doesn't run on railsbump.org but on assets.railsbump.org.
= javascript_include_tag "/js/script.js", defer: true, data: { domain: "railsbump.org", api: asset_url("/api/event") }
-# Use the asset host for the API URL, since the Plausible Cloudfront worker doesn't run on railsbump.org but on proxied
= javascript_include_tag "#{ENV['ASSET_HOST']}/js/script.js", defer: true, data: { domain: "railsbump.org", api: asset_url("/api/event", host: ENV['ASSET_HOST']) }

%body{ class: page_classes }
= render "shared/header"
Expand Down

0 comments on commit e0aa808

Please sign in to comment.