diff --git a/BlazorDiffusion/Configure.AppHost.cs b/BlazorDiffusion/Configure.AppHost.cs index 13c6f0e..eaa42cb 100644 --- a/BlazorDiffusion/Configure.AppHost.cs +++ b/BlazorDiffusion/Configure.AppHost.cs @@ -52,7 +52,7 @@ public void Configure(IWebHostBuilder builder) => builder { BaseUrl = baseUrl, ApiBaseUrl = apiUrl ?? baseUrl, - WwwBaseUrl = cdnUrl != null ? $"https://api.blazordiffusion.com" : baseUrl, + WwwBaseUrl = cdnUrl != null ? $"https://blazordiffusion.com" : baseUrl, CdnBaseUrl = cdnUrl ?? "https://blazordiffusion.com", R2Account = "b95f38ca3a6ac31ea582cd624e6eb385", R2AccessId = r2AccessId, @@ -101,8 +101,9 @@ public override void Configure(Container container) var s3Client = container.Resolve(); - var localFs = new FileSystemVirtualFiles(ContentRootDirectory.RealPath.CombineWith("App_Data").AssertDir()); - var appFs = VirtualFiles = hasR2 ? new R2VirtualFiles(s3Client, appConfig.ArtifactBucket) : localFs; + var appFs = VirtualFiles = hasR2 + ? new R2VirtualFiles(s3Client, appConfig.ArtifactBucket) + : new FileSystemVirtualFiles(ContentRootDirectory.RealPath.CombineWith("App_Data").AssertDir()); Plugins.Add(new FilesUploadFeature( new UploadLocation("artifacts", appFs, readAccessRole: RoleNames.AllowAnon, diff --git a/BlazorDiffusion/wwwroot/mjs/store.mjs b/BlazorDiffusion/wwwroot/mjs/store.mjs index a82c225..c9a0672 100644 --- a/BlazorDiffusion/wwwroot/mjs/store.mjs +++ b/BlazorDiffusion/wwwroot/mjs/store.mjs @@ -7,7 +7,7 @@ import { useAuth, useUtils } from "@servicestack/vue" export const BaseUrl = globalThis.BaseUrl = location.origin === 'https://localhost:5001' ? 'https://localhost:5001' - : 'https://api.blazordiffusion.com/' + : 'https://blazordiffusion.com/' export const AssetsBasePath = globalThis.AssetsBasePath = "https://cdn.diffusion.works" export const FallbackAssetsBasePath = globalThis.FallbackAssetsBasePath = "https://pub-97bba6b94a944260b10a6e7d4bf98053.r2.dev"