Skip to content

Commit ba6d284

Browse files
authored
Merge pull request #24 from mjjabarullah:main
fix: removing cwd path from static options
2 parents d920486 + 0188bd0 commit ba6d284

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/react-router.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export async function reactRouter(
6464
elysia.use(
6565
staticPlugin({
6666
prefix: "/",
67-
assets: join(buildDirectory, "client"),
67+
assets: join(options?.buildDirectory ?? "build", "client"),
6868
headers: { "Cache-Control": "public, max-age=31536000, immutable" },
6969
...options?.production?.assets,
7070
}),

src/remix.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export async function remix(
6969
elysia.use(
7070
staticPlugin({
7171
prefix: "/",
72-
assets: join(buildDirectory, "client"),
72+
assets: join(options?.buildDirectory ?? "build", "client"),
7373
headers: { "Cache-Control": "public, max-age=31536000, immutable" },
7474
...options?.production?.assets,
7575
}),

0 commit comments

Comments
 (0)