Add admin dashboard and Pocket ID auth notes
All checks were successful
/ deploy (push) Successful in 42s
All checks were successful
/ deploy (push) Successful in 42s
This commit is contained in:
parent
fc5762d267
commit
06093af633
10 changed files with 947 additions and 29 deletions
|
|
@ -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/.`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue