Skip to content

Commit

Permalink
fix plausible
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelmeurer committed May 23, 2023
1 parent f2b1dc8 commit 06217ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/views/layouts/application.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
= javascript_importmap_tags
- if Rails.env.production?
= javascript_include_tag "/qwerty/js/script.js", defer: true, data: { domain: "railsbump.org", api: "/qwerty/api/event" }
-# Use the asset host for the API URL, since the Plausible Cloudflare worker doesn't run on railsbump.org but on assets.railsbump.org.
= javascript_include_tag "/qwerty/js/script.js", defer: true, data: { domain: "railsbump.org", api: asset_url("/qwerty/api/event") }
%body{ class: page_classes }
= render "shared/header"
Expand Down

0 comments on commit 06217ed

Please sign in to comment.