Fixing fetch not working in dev

This commit is contained in:
Chaska 2024-05-07 12:57:49 -05:00 committed by GitHub
parent 3bdc9e04ac
commit d8798f3075
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19,11 +19,7 @@ html lang="en"
meta name="format-detection" content="telephone=no"
= csrf_meta_tag()
= if vite_reload?() do
script type="module" src="http://localhost:5173/@vite/client"
script type="module" src="http://localhost:5173/js/app.js"
- else
script type="text/javascript" src=Routes.static_path(@conn, "/js/app.js") async="async"
script type="text/javascript" src=Routes.static_path(@conn, "/js/app.js") async="async"
= render PhilomenaWeb.LayoutView, "_opengraph.html", assigns
body data-theme=theme_name(@current_user) data-vite-reload=to_string(vite_reload?())
= render PhilomenaWeb.LayoutView, "_burger.html", assigns
@ -34,4 +30,4 @@ html lang="en"
= @inner_content
= render PhilomenaWeb.LayoutView, "_footer.html", assigns
form.hidden: input.js-interaction-cache type="hidden" value="{}"
= clientside_data(@conn)
= clientside_data(@conn)