Files
sweet/packages/fresh/src/constants.ts
T
Marvin Hagemeister afdf5eaf6c fix(vite): asset handling (#3225)
This PR reworks asset handling in our vite plugin. Importing assets in
js is now supported.
2025-08-19 16:45:33 +02:00

13 lines
425 B
TypeScript

export const INTERNAL_PREFIX = "/_frsh";
export const DEV_ERROR_OVERLAY_URL = `${INTERNAL_PREFIX}/error_overlay`;
export const ALIVE_URL = `${INTERNAL_PREFIX}/alive`;
export const PARTIAL_SEARCH_PARAM = "fresh-partial";
export const SECOND = 1000;
export const MINUTE = SECOND * 60;
export const HOUR = MINUTE * 60;
export const DAY = HOUR * 24;
export const WEEK = DAY * 7;
export const ASSET_CACHE_BUST_KEY = "__frsh_c";