From 5f8cb8b99b141e6b206aa0835ed703f84b375e27 Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Wed, 15 Jan 2025 19:00:46 -0500 Subject: [PATCH] chore fix --- assets/js/app.js | 2 +- lib/ash_hq_web/router.ex | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/assets/js/app.js b/assets/js/app.js index 4039204..0a4d4a5 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -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(/^_/, ''); diff --git a/lib/ash_hq_web/router.ex b/lib/ash_hq_web/router.ex index 9d33b93..1587f78 100644 --- a/lib/ash_hq_web/router.ex +++ b/lib/ash_hq_web/router.ex @@ -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)