Skip to content

Commit

Permalink
fix: check if local client build exists before using it
Browse files Browse the repository at this point in the history
  • Loading branch information
BluDood committed Oct 25, 2024
1 parent 6caf13d commit 82dd8d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/lib/webapp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import fs from 'fs'
import { execAsync, isDev, log } from './utils.js'

export async function getWebAppDir() {
if (isDev) {
if (isDev && fs.existsSync(path.join(process.cwd(), 'client/dist'))) {
log('Using local client webapp', 'Client Webapp')
return path.join(process.cwd(), 'client/dist')
}
Expand Down

0 comments on commit 82dd8d6

Please sign in to comment.