mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-15 10:50:31 +01:00
8 lines
410 B
JavaScript
8 lines
410 B
JavaScript
|
import { renameSync } from 'fs';
|
||
|
import { fileURLToPath } from 'url';
|
||
|
import path from 'path';
|
||
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||
|
|
||
|
console.log(`Running frontend post build script...`)
|
||
|
renameSync(path.resolve(__dirname, '../dist/index.html'), path.resolve(__dirname, '../dist/_index.html'));
|
||
|
console.log(`index.html renamed to _index.html so SSR of the index page can be assumed.`);
|