Skip to content

Commit

Permalink
use blazordiffusion.com instead of api.blazordiffusion.com
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Nov 6, 2023
1 parent cbc83f8 commit 20b3940
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions BlazorDiffusion/Configure.AppHost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -101,8 +101,9 @@ public override void Configure(Container container)

var s3Client = container.Resolve<AmazonS3Client>();

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,
Expand Down
2 changes: 1 addition & 1 deletion BlazorDiffusion/wwwroot/mjs/store.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 20b3940

Please sign in to comment.