fix: resolve two build errors — siteBaseUrl self-reference + ForwardedHeaders
CI/CD / CI · dotnet build (push) Successful in 11m58s
CI/CD / Deploy · drsousan (push) Successful in 13s

- Index.cshtml: siteBaseUrl was referencing itself as fallback; replaced
  with literal default "https://draletaha.ir"
- Program.cs: removed UseForwardedHeaders call — ForwardedHeadersOptions
  unavailable in this SDK config; SITE_BASE_URL env var handles base URL

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
soroush.asadi
2026-06-08 23:33:38 +03:30
parent d02a5963cf
commit 5ae6bb03a2
2 changed files with 1 additions and 8 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
@page
@model IndexModel
@{
var siteBaseUrl = Environment.GetEnvironmentVariable("SITE_BASE_URL")?.TrimEnd('/') ?? (siteBaseUrl);
var siteBaseUrl = Environment.GetEnvironmentVariable("SITE_BASE_URL")?.TrimEnd('/') ?? "https://draletaha.ir";
var h = Model.Hero;
var a = Model.About;
var c = Model.Contact;