mirror of
https://github.com/quay/quay.git
synced 2026-01-26 06:21:37 +03:00
9 lines
388 B
JavaScript
9 lines
388 B
JavaScript
const fs = require('fs');
|
|
const path = require('path');
|
|
|
|
const indexPath = path.resolve(__dirname, 'dist/index.html');
|
|
const targetFilePath = path.resolve(__dirname, 'dist/200.html');
|
|
// ensure we have bookmarkable url's when publishing to surge
|
|
// https://surge.sh/help/adding-a-200-page-for-client-side-routing
|
|
fs.createReadStream(indexPath).pipe(fs.createWriteStream(targetFilePath));
|