fix deploy with dynamicImports

pull/5060/head
drafish 5 months ago committed by yann300
parent e727b8bc12
commit 82bd837107
  1. 13
      apps/quick-dapp/src/actions/index.ts

@ -143,8 +143,17 @@ export const deploy = async (payload: any, callback: any) => {
// It's generated through the build process automatically.
'https://remix-dapp.pages.dev/manifest.json'
);
const { src, file, css, assets } = data['index.html'];
const paths = [src, file, ...css, ...assets];
let paths: any = [];
Object.keys(data).forEach((key) => {
if (data[key].src === 'index.html') {
const { src, file, css, assets } = data[key];
paths = paths.concat([src, file, ...css, ...assets]);
} else {
paths.push(data[key].file);
}
});
const instance = state.instance;

Loading…
Cancel
Save