website: ensure templates dir exists

This commit is contained in:
weishu
2023-10-21 10:33:39 +08:00
parent 3ebee74efc
commit a4fb9e4031
2 changed files with 1 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ export default defineConfig( {
let files = []; let files = [];
try { try {
files = await readdir(templateDir); files = await readdir(templateDir);
files = files.filter(file => !file.startsWith('.'));
} catch(e) { } catch(e) {
// ignore // ignore
} }

View File