Skip to content

Commit

Permalink
fix(solo): correct lookup of wallet-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
mhofman committed Sep 26, 2023
1 parent 2c4f0d0 commit 275dd0a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/solo/src/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -483,8 +483,14 @@ const start = async (basedir, argv) => {
const { 'agoric-wallet': { htmlBasedir = 'ui/build', deploy = [] } = {} } =
JSON.parse(fs.readFileSync(pjs, 'utf-8'));

const htmlBasePath = String(htmlBasedir).replace(
/^\.\.\/\.\.\/node_modules\//,
'',
);

const agWallet = path.dirname(pjs);
const agWalletHtml = path.resolve(agWallet, htmlBasedir);
const agWalletHtmlUrl = await importMetaResolve(htmlBasePath, packageUrl);
const agWalletHtml = new URL(agWalletHtmlUrl).pathname;

let hostport;
await Promise.all(
Expand Down

0 comments on commit 275dd0a

Please sign in to comment.