diff --git a/tools/postbuild.js b/tools/postbuild.js
index dde85448..09e8281e 100644
--- a/tools/postbuild.js
+++ b/tools/postbuild.js
@@ -72,30 +72,7 @@ readDir(path.join(__dirname, rootDirectiory))
});
})
.then(() => {
- // Copy index.html → app/index.html so static hosts (Amplify, S3, Nginx)
- // can route /app/* to the CSR Angular shell.
- // With SSR/prerender disabled the build outputs index.html directly (no index.csr.html).
- const distIndexPath = path.join(__dirname, rootDirectiory, 'index.html');
- const appShellDir = path.join(__dirname, rootDirectiory, 'app');
- const appShellPath = path.join(appShellDir, 'index.html');
-
- if (fs.existsSync(distIndexPath)) {
- if (!fs.existsSync(appShellDir)) {
- fs.mkdirSync(appShellDir, { recursive: true });
- }
-
- let appShellHtml = fs.readFileSync(distIndexPath, 'utf8');
-
- // Force base href to "/" so JS chunks load from the root, not from /app/
- if (!appShellHtml.includes('')) {
- appShellHtml = appShellHtml.replace(//i, '');
- }
-
- fs.writeFileSync(appShellPath, appShellHtml);
- console.log(`Copied index.html → app/index.html (base href enforced)`);
- } else {
- console.log('index.html not found, skipping app/index.html copy');
- }
+ console.log('Post-build tasks complete');
})
.catch((err) => {
console.log('Error with post build:', err);