mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-22 08:12:00 +02:00
15 lines
393 B
JavaScript
15 lines
393 B
JavaScript
![]() |
const fs = require('fs-extra');
|
||
|
|
||
|
async function postBuild() {
|
||
|
try {
|
||
|
await fs.copy('public/assets', 'dist/assets');
|
||
|
await fs.copy('public/robots.txt', 'dist/robots.txt');
|
||
|
console.log('✅ PWA icons and robots.txt copied successfully. Glob pattern warnings resolved.');
|
||
|
} catch (err) {
|
||
|
console.error('❌ Error copying files:', err);
|
||
|
process.exit(1);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
postBuild();
|