Breaking UI in staging

IN staging

In local env

I dont understand why the ui is breaking, I only updated the deps, though its working well locally.

check if your assets are deployed in the correct place, or the folder where assets located is served by the server, the configuration should be located somewhere in endpoint.ex

  plug Plug.Static,
    at: "/",
    from: :admin,
    gzip: false,
    only: AdminWeb.static_paths()
defmodule AdminWeb do

  def static_paths do
    ~w(css fonts images js favicon.ico robots.txt)
                  <%= link "Accounts", to: Routes.account_path(@conn, :index), class: "#{if !String.starts_with?(@conn.request_path, "/accounts"), do: "bg-gray-900"} text-white px-3 py-2 rounded-md text-sm font-medium" %>

I am using conditionally rendered classes, Though its working locally

The classes are showing up in App.css

check if you have access to app.css from the server, it should be accessible by the public link, if you can’t load the assets, then it is most probably a problem related to assets deploy.

Thank you for that quick response. Thank you.

I fixed it , it was in tailwind config, I have to change it to .heex instead of .leex and eex