fix: correctly deploy element-call widget via vite-plugin-static-copy
CI / Build & Quality Checks (push) Successful in 10m54s

The glob pattern dist/* preserved the full node_modules/...  path
when copying to public/element-call/, resulting in only a nested
node_modules directory being deployed (causing 404 on index.html).

Switching to a directory src with rename lets the plugin copy the
dist folder wholesale as public/element-call/.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lotus Bot
2026-05-22 20:22:39 -04:00
parent b129232f2b
commit 4a0218682e
+3 -2
View File
@@ -13,8 +13,9 @@ import buildConfig from './build.config';
const copyFiles = {
targets: [
{
src: 'node_modules/@element-hq/element-call-embedded/dist/*',
dest: 'public/element-call',
src: 'node_modules/@element-hq/element-call-embedded/dist',
dest: 'public',
rename: 'element-call',
},
{
src: 'config.json',