Skip to the content

Capsid menu

app/lib/enhance-url.mjs

8 lines and 0 functions in DrDustinEdwards/dustinedwards-info, at commit 1590ba4 on 2026-10-24. This file on GitHub.

Functions

None: it only declares types or values.

Imports

It imports no other module of this repo. Imported by app/enhance/theme.ts, app/lib/enhance-loader.mjs.

Source

/*
 * Where an enhancement may be loaded from. Its own module, because enhance-loader.mjs's text is not
 * tree-shaken, and app/enhance/theme.ts, which every public page loads, needs only this. The loader
 * and the palette trigger both hold a resolved, normalized URL to `origin + ENHANCE_URL_PREFIX`;
 * test/enhance-loader.test.mjs runs both rules over the same cases.
 */

/** Where the app build emits the bundles (scripts/lib/enhance-bundle.mjs), under Vite's base `/`. */
export const ENHANCE_URL_PREFIX = "/assets/";