Skip to content

Commit

Permalink
chore fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Jan 16, 2025
1 parent c792485 commit 5f8cb8b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ function setUrl() {
if (location.hostname === "localhost" || location.hostname === "127.0.0.1") {
base = "localhost:4000/new"
} else {
base = "https://new.ash-hq.org"
base = "https://ash-hq.org/new"
}
const appNameSafe = appName.toLowerCase().replace(/[\s-]/g, '_').replace(/[^a-z_]/g, '').replace(/^_/, '');

Expand Down
13 changes: 7 additions & 6 deletions lib/ash_hq_web/router.ex
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,16 @@ defmodule AshHqWeb.Router do
plug(:basic_auth)
end

scope "/", host: "new." do
# scope "/", host: "new." do
# get("/:name", AshHqWeb.NewController, :new)
# end

# if Mix.env() == :dev do
scope "/new" do
get("/:name", AshHqWeb.NewController, :new)
end

if Mix.env() == :dev do
scope "/new" do
get("/:name", AshHqWeb.NewController, :new)
end
end
# end

scope "/", AshHqWeb do
pipe_through(:browser)
Expand Down

0 comments on commit 5f8cb8b

Please sign in to comment.