From 4e99e0233a914871ed7baa4b7da62ec7e9c94dd9 Mon Sep 17 00:00:00 2001 From: Tobias Klika Date: Tue, 5 May 2026 11:48:00 +0200 Subject: [PATCH] always use vite-proxy port from options --- mixtape.Raven/mixtape.Raven.csproj | 2 +- mixtape.Sqlite/mixtape.Sqlite.csproj | 2 +- mixtape/Frontend/ViteScriptTagHelper.cs | 5 +---- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/mixtape.Raven/mixtape.Raven.csproj b/mixtape.Raven/mixtape.Raven.csproj index 6df86131..afcd8b1e 100644 --- a/mixtape.Raven/mixtape.Raven.csproj +++ b/mixtape.Raven/mixtape.Raven.csproj @@ -17,7 +17,7 @@ - + \ No newline at end of file diff --git a/mixtape.Sqlite/mixtape.Sqlite.csproj b/mixtape.Sqlite/mixtape.Sqlite.csproj index 3e0c9e67..61ccf4f7 100644 --- a/mixtape.Sqlite/mixtape.Sqlite.csproj +++ b/mixtape.Sqlite/mixtape.Sqlite.csproj @@ -15,7 +15,7 @@ - + \ No newline at end of file diff --git a/mixtape/Frontend/ViteScriptTagHelper.cs b/mixtape/Frontend/ViteScriptTagHelper.cs index e715ba93..a5de24a0 100644 --- a/mixtape/Frontend/ViteScriptTagHelper.cs +++ b/mixtape/Frontend/ViteScriptTagHelper.cs @@ -26,10 +26,7 @@ public class ViteScriptTagHelper(IWebHostEnvironment env, IMixtapeOptions option return; } - int? viteProxyPort = 5123; -#if DEBUG - viteProxyPort = options.For().Port; -#endif + int? viteProxyPort = options.For().Port; HttpRequest request = ViewContext.HttpContext.Request; string fullPath = $"{request.Scheme}://{request.Host.Host}:{viteProxyPort}/{Src}";