creating the first version of the landing page

This commit is contained in:
itsamejms
2025-12-23 15:17:27 +00:00
parent cc8ceab747
commit e7c203ccf6
86 changed files with 12140 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
const fs = require('fs');
const path = require('path');
const projectRoot = path.resolve(__dirname, '..');
const publicCname = path.join(projectRoot, 'public', 'CNAME');
const distCname = path.join(projectRoot, 'dist', 'CNAME');
const indexHtml = path.join(projectRoot, 'dist', 'index.html');
const notFound = path.join(projectRoot, 'dist', '404.html');
try {
if (fs.existsSync(publicCname)) {
fs.copyFileSync(publicCname, distCname);
console.log('Copied CNAME to dist/');
} else {
console.log('No public/CNAME found — skipping CNAME copy.');
}
} catch (err) {
console.error('Error copying CNAME:', err);
}
try {
if (fs.existsSync(indexHtml)) {
fs.copyFileSync(indexHtml, notFound);
console.log('Created dist/404.html from index.html');
} else {
console.log('No dist/index.html found — skipping 404 generation.');
}
} catch (err) {
console.error('Error creating 404.html:', err);
}