Skip to content

Commit

Permalink
fix/fix import of app dist (#58)
Browse files Browse the repository at this point in the history
* fix the path of app_dist directory to fix bug in production

* changelog
  • Loading branch information
florianbgt authored Jan 7, 2025
1 parent 40c6d63 commit ea9b790
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## [Unreleased]

fix the path of app_dist directory to fix bug in production

## [0.0.27] - 2025-01-02

Change command names
Expand Down
3 changes: 2 additions & 1 deletion packages/cli/src/cli/helpers/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ export async function runServer(
}),
);
} else {
app.use(express.static(path.join(__dirname, "../app_dist")));
// TODO find a better way to get dist directory. If we move this file, it will break
app.use(express.static(path.join(__dirname, "../../../app_dist")));
}

const port = await findAvailablePort(3000);
Expand Down

0 comments on commit ea9b790

Please sign in to comment.