always use vite-proxy port from options
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Mixtape\Mixtape.csproj" />
|
||||
<ProjectReference Include="..\mixtape\mixtape.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
@@ -15,7 +15,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Mixtape\Mixtape.csproj" />
|
||||
<ProjectReference Include="..\mixtape\mixtape.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
@@ -26,10 +26,7 @@ public class ViteScriptTagHelper(IWebHostEnvironment env, IMixtapeOptions option
|
||||
return;
|
||||
}
|
||||
|
||||
int? viteProxyPort = 5123;
|
||||
#if DEBUG
|
||||
viteProxyPort = options.For<ViteProxy.ViteProxyOptions>().Port;
|
||||
#endif
|
||||
int? viteProxyPort = options.For<ViteProxy.ViteProxyOptions>().Port;
|
||||
|
||||
HttpRequest request = ViewContext.HttpContext.Request;
|
||||
string fullPath = $"{request.Scheme}://{request.Host.Host}:{viteProxyPort}/{Src}";
|
||||
|
||||
Reference in New Issue
Block a user