Skip to content

Commit dfcbee6

Browse files
committed
Client built in build directory
1 parent fe02ebd commit dfcbee6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

config/paths.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const resolveModule = (resolveFn, filePath) => {
5252
module.exports = {
5353
dotenv: resolveApp(".env"),
5454
appPath: resolveApp("."),
55-
appBuild: resolveApp("build/client"),
55+
appBuild: resolveApp("build"),
5656
appPublic: resolveApp("public"),
5757
appHtml: resolveApp("public/index.html"),
5858
appIndexJs: resolveModule(resolveApp, "src/client/index"),

src/server/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const main = async () => {
1818

1919
// Automatically serve the index.html file from the build folder
2020
app.set("trust proxy", "loopback");
21-
app.use("/", express.static("build/client"));
21+
app.use("/", express.static("build/"));
2222

2323
app.get("/hello", (_, res) => {
2424
res.json({ test: "Hello world" });

0 commit comments

Comments
 (0)