mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
Merge branch 'main' into ue4
This commit is contained in:
commit
bc9f7054e1
8 files changed
+10
-18
No files matched your search
@@ -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}`;
|
||||
}
|
||||
Reference in new issue
Block a user