fix: correctly deploy element-call widget via vite-plugin-static-copy
CI / Build & Quality Checks (push) Successful in 10m54s
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:
+3
-2
@@ -13,8 +13,9 @@ import buildConfig from './build.config';
|
|||||||
const copyFiles = {
|
const copyFiles = {
|
||||||
targets: [
|
targets: [
|
||||||
{
|
{
|
||||||
src: 'node_modules/@element-hq/element-call-embedded/dist/*',
|
src: 'node_modules/@element-hq/element-call-embedded/dist',
|
||||||
dest: 'public/element-call',
|
dest: 'public',
|
||||||
|
rename: 'element-call',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
src: 'config.json',
|
src: 'config.json',
|
||||||
|
|||||||
Reference in New Issue
Block a user