Add static SEO and FAQ foundations
This commit is contained in:
@@ -4,7 +4,7 @@ import { resolve } from 'node:path';
|
||||
const key = process.env.SITE_KEY;
|
||||
if (!key) throw new Error('SITE_KEY is required.');
|
||||
const root = resolve(`dist/${key}`);
|
||||
const required = ['index.html', '404.html'];
|
||||
const required = ['index.html', '404.html', 'robots.txt', 'sitemap.xml'];
|
||||
if (key === 'www') required.push('about/index.html', 'services/index.html', 'contact/index.html');
|
||||
for (const file of required) await access(resolve(root, file));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user