Skip to content

Commit

Permalink
fix deploy with dynamicImports
Browse files Browse the repository at this point in the history
  • Loading branch information
drafish committed Jun 18, 2024
1 parent 24bfa83 commit 97f36df
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions apps/quick-dapp/src/actions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 97f36df

Please sign in to comment.