Merge branch 'main' into ue4

This commit is contained in:
TrèsAbhi committed 2025-06-08 19:38:46 -05:00
commit bc9f7054e1
8 files changed
+10 -18

No files matched your search

+1 -9
View File
@@ -1,13 +1,5 @@
import { assertSecret } from './assertSecret';
export function asset(path: string) {
return assertSecret(import.meta.env.PUBLIC_ASSET_BRANCH) === 'main'
? `https://${assertSecret(
import.meta.env.PUBLIC_ASSET_FAST_USER,
)}.github.io/${assertSecret(
import.meta.env.PUBLIC_ASSET_FAST_REPO,
)}/${path}`
: `https://raw.githubusercontent.com/${assertSecret(
import.meta.env.PUBLIC_ASSET_REPO,
)}/${assertSecret(import.meta.env.PUBLIC_ASSET_BRANCH)}/${path}`;
return `${assertSecret(import.meta.env.PUBLIC_ASSET_BASE)}/${path}`;
}