PDPA Features: ✅ Cookie consent banner ✅ Consent logging API ✅ Admin dashboard ✅ Privacy Policy ✅ Terms & Conditions Technical: ✅ Astro 5.x + Tailwind v4 ✅ Docker on port 80 ✅ SQLite database ✅ 15 pages built Ready for Easypanel deployment.
19 lines
446 B
JavaScript
19 lines
446 B
JavaScript
async function loadRenderers(renderers) {
|
|
const loadedRenderers = await Promise.all(
|
|
renderers.map(async (renderer) => {
|
|
const mod = await import(renderer.serverEntrypoint.toString());
|
|
if (typeof mod.default !== "undefined") {
|
|
return {
|
|
...renderer,
|
|
ssr: mod.default
|
|
};
|
|
}
|
|
return void 0;
|
|
})
|
|
);
|
|
return loadedRenderers.filter((r) => Boolean(r));
|
|
}
|
|
export {
|
|
loadRenderers
|
|
};
|