Add admin dashboard and Pocket ID auth notes
All checks were successful
/ deploy (push) Successful in 42s

This commit is contained in:
Loyyd 2026-06-13 09:34:28 +02:00
parent fc5762d267
commit 06093af633
10 changed files with 947 additions and 29 deletions

View file

@ -17,10 +17,17 @@ for (const dir of staticDirs) {
const speechIndexSource = path.join(distRoot, "speeches.html");
const speechIndexDestination = path.join(distRoot, "speeches", "index.html");
const adminIndexSource = path.join(distRoot, "admin.html");
const adminIndexDestination = path.join(distRoot, "admin", "index.html");
if (fs.existsSync(speechIndexSource)) {
fs.mkdirSync(path.dirname(speechIndexDestination), { recursive: true });
fs.copyFileSync(speechIndexSource, speechIndexDestination);
}
if (fs.existsSync(adminIndexSource)) {
fs.mkdirSync(path.dirname(adminIndexDestination), { recursive: true });
fs.copyFileSync(adminIndexSource, adminIndexDestination);
}
console.log(`Copied ${staticDirs.join(", ")} into dist/.`);