Skip to content

Commit

Permalink
fix: temporarily disable npm install when starting the app
Browse files Browse the repository at this point in the history
This is to eliminate possible cases as part of some experimentation
  • Loading branch information
1egoman committed Oct 22, 2024
1 parent 13fe79f commit 4decc86
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/web/src/components/apps/use-preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,10 @@ export function PreviewProvider({ channel, children }: ProviderPropsType) {
}, [channel, addLog]);

async function start() {
if (nodeModulesExists === false) {
await npmInstall();
}
// NOTE: only run this if status !== 'installing' maybe?
// if (nodeModulesExists === false) {
// await npmInstall();
// }
channel.push('preview:start', {});
}

Expand Down

0 comments on commit 4decc86

Please sign in to comment.