mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-22 06:00:56 +02:00

* 🔧 chore: Update build script to include post-build image removal
* refactor: staticCache middleware with options and special handling for manifest/sw/index files
* refactor(pwa): optimize service worker caching strategy
* refactor: streamline post-build process and update public directory handling
* chore: remove external images from rollupOptions in Vite config
* chore: enhance logging message in post-build script for clarity
14 lines
393 B
JavaScript
14 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();
|