mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-10-26 04:22:08 -05:00
Move app to apps/web-react in pnpm workspace layout
This commit is contained in:
18
apps/web-react/app/features/scanner/node/assets-dir.ts
Normal file
18
apps/web-react/app/features/scanner/node/assets-dir.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* Where Node-side code (tests, atlas builders) reads and writes the scanner
|
||||
* asset sets. SCANNER_ASSETS_DIR holds the scanner-specific atlases (glyphs, planner
|
||||
* signatures; overridable with the env var of the same name) — its version
|
||||
* segment must match the worker-side ATLAS_BASE (worker/resources.ts).
|
||||
* GAME_IMG_DIR is the sibling sendou-ink/assets checkout's shared `img/**`
|
||||
* tree the game icons are read from — the same files the CDN mirrors.
|
||||
* xxx: atlases temporarily live in this repo's public/ while the feature
|
||||
* is in development; move them to the assets repo later
|
||||
*/
|
||||
export const SCANNER_ASSETS_DIR =
|
||||
process.env.SCANNER_ASSETS_DIR ??
|
||||
new URL("../../../../public/scanner/v1", import.meta.url).pathname;
|
||||
|
||||
export const GAME_IMG_DIR = new URL(
|
||||
"../../../../../assets/assets/img",
|
||||
import.meta.url,
|
||||
).pathname;
|
||||
Reference in New Issue
Block a user