blob: 58743c81f0908fa457187d5411fa65f888d2331a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
/**
* Server-only module: exposes venue metadata from all registered scrapers.
* Importing this in a route loader ensures scraper code never reaches the client bundle.
*/
import { ALL_SCRAPERS } from "~/scrapers/index";
import type { VenueMeta } from "~/scrapers/base";
export function getScraperVenues(): VenueMeta[] {
return ALL_SCRAPERS.map((s) => s.venue);
}
export function getScraperIds(): string[] {
return ALL_SCRAPERS.map((s) => s.venue.id);
}
|