You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

7 lines
410 B

11 months ago
  1. import { renameSync } from 'fs';
  2. import { fileURLToPath } from 'url';
  3. import path from 'path';
  4. const __dirname = path.dirname(fileURLToPath(import.meta.url));
  5. console.log(`Running frontend post build script...`)
  6. renameSync(path.resolve(__dirname, '../dist/index.html'), path.resolve(__dirname, '../dist/_index.html'));
  7. console.log(`index.html renamed to _index.html so SSR of the index page can be assumed.`);