feat: Add LinkTelegram page and routing; enhance login flow to support redirection from linkTelegram

This commit is contained in:
sebseb7
2026-03-27 01:29:04 +01:00
parent 5b7f0f788c
commit 7202c43dfa
5 changed files with 265 additions and 3 deletions

View File

@@ -424,6 +424,11 @@ const renderApp = async (categoryData, socket) => {
const resetPasswordPath = path.resolve(__dirname, config.outputDir, "resetPassword");
fs.copyFileSync(indexPath, resetPasswordPath);
console.log(`✅ Copied index.html to ${resetPasswordPath}`);
// Copy index.html to linkTelegram (no file extension) for SPA routing
const linkTelegramPath = path.resolve(__dirname, config.outputDir, "linkTelegram");
fs.copyFileSync(indexPath, linkTelegramPath);
console.log(`✅ Copied index.html to ${linkTelegramPath}`);
}
// Render static pages