mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-07-11 06:24:47 +00:00
split assets to R2 bucket in cloudflare
Some checks failed
Deploy to Cloudflare Pages / deploy (push) Has been cancelled
Some checks failed
Deploy to Cloudflare Pages / deploy (push) Has been cancelled
This commit is contained in:
parent
ad9f65ffed
commit
d8703b75c8
4 changed files with 26 additions and 8 deletions
|
|
@ -14,7 +14,7 @@ const log = createLogger("loaders");
|
|||
|
||||
export type { TerrainFile };
|
||||
|
||||
export const RESOURCE_ROOT_URL = `${process.env.BASE_PATH}base/`;
|
||||
export const RESOURCE_ROOT_URL = process.env.GAME_ASSETS_BASE_URL;
|
||||
export const FALLBACK_TEXTURE_URL = `${process.env.BASE_PATH}white.png`;
|
||||
|
||||
export function getUrlForPath(resourcePath: string, fallbackUrl?: string) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue