Skip to content

Commit 0df44d5

Browse files
committed
Fixed path to static site
1 parent 4a32034 commit 0df44d5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

update-conference-prague-2024/demo-code-feedback-system/infra/Builders/StaticSiteBuilder.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,12 @@ private SiteStorageInfra GenerateSiteInfra()
7474

7575
_ = ApiResources.Function.HttpsEndpoint.Apply(apiEndpoint =>
7676
{
77-
var appsettingsFilePath = $"{GlobalConfig.StaticSiteConfig.StaticSitePath}/appsettings.json";
77+
var wwwRootPath = $"{GlobalConfig.StaticSiteConfig.StaticSitePath}/wwwroot";
78+
var appsettingsFilePath = $"{wwwRootPath}/appsettings.json";
7879
WriteConfigFiles(appsettingsFilePath, apiEndpoint);
7980

8081
//Create Pulumi entries for each file to upload
81-
var fullSearchPath = Path.GetFullPath(GlobalConfig.StaticSiteConfig.StaticSitePath);
82+
var fullSearchPath = Path.GetFullPath(wwwRootPath);
8283
var allFiles = Directory.EnumerateFiles(fullSearchPath, searchPattern: "*", SearchOption.AllDirectories);
8384
foreach (var fullFilePath in allFiles)
8485
{

0 commit comments

Comments
 (0)