mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-19 12:40:09 +01:00
8180787c2e
* Enable editing and setting of meta-tag information * cleanup * tmp build for testing * finally always refresh * unset workflow * dev build * rm tmp build
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.`); |