Skip to content

Commit e32dfe6

Browse files
committed
switch asset urls
1 parent e9e35b0 commit e32dfe6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

BlazorDiffusion/wwwroot/mjs/store.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ import { ApiResult, combinePaths, EventBus, leftPart, queryString, rightPart, se
66
import { useAuth, useUtils } from "@servicestack/vue"
77

88
export const BaseUrl = globalThis.BaseUrl = '/'
9-
// export const AssetsBasePath = globalThis.AssetsBasePath = "https://cdn.diffusion.works"
10-
// export const FallbackAssetsBasePath = globalThis.FallbackAssetsBasePath = "https://pub-97bba6b94a944260b10a6e7d4bf98053.r2.dev"
119
export const AssetsBasePath = globalThis.AssetsBasePath = location.hostname === "localhost"
1210
? "https://localhost:5005"
1311
: "https://ai-server-cdn.diffusion.works"
14-
export const FallbackAssetsBasePath = globalThis.FallbackAssetsBasePath = AssetsBasePath
12+
export const FallbackAssetsBasePath = globalThis.FallbackAssetsBasePath = location.hostname === "localhost"
13+
? "https://localhost:5005"
14+
: "https://ai-server-cdn.diffusion.works"
1515

1616
export class Store {
1717
InitialTake = 50

0 commit comments

Comments
 (0)