Skip to content

Commit

Permalink
server: improve error message when client is not present
Browse files Browse the repository at this point in the history
  • Loading branch information
dyc3 committed Jan 19, 2024
1 parent 15b055b commit b85cf98
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion server/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,12 @@ export async function main() {
if (fs.existsSync("../client/dist")) {
app.get("*", serveBuiltFiles);
} else {
log.warn("no dist folder found");
log.warn("no dist folder found, run `yarn build` to build the client");
app.get("*", (req, res) => {
res.status(404).send(

Check warning on line 206 in server/app.ts

View check run for this annotation

Codecov / codecov/patch

server/app.ts#L204-L206

Added lines #L204 - L206 were not covered by tests
"File not found - Client files not found. Run `yarn build` to build the client."
);
});
}

initExtractor();
Expand Down

0 comments on commit b85cf98

Please sign in to comment.