Skip to the content

Capsid menu

app/lib/site-origin.mjs

5 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/kb/procedures/run.mjs, app/lib/citations.server.ts, app/lib/podcast/podcast.server.ts, app/lib/publications/exports.mjs, app/lib/publications/sources.server.ts, app/lib/seo.ts, app/lib/wordpress-redirects.mjs.

Source

// The site's own address, in a plain module so the Worker, the prerender and the Node scripts read one value.
// Never derive absolute URLs from `request.url`: prerendering runs in Node with no request.
export const SITE_ORIGIN = "https://dustinedwards.info";

/** What the site calls itself when it fetches another service (Crossref, DataCite, feeds). */
export const SITE_USER_AGENT = `dustinedwards.info (+${SITE_ORIGIN})`;