Skip to content

Commit

Permalink
fix: use staticRoute instead of staticPath πŸ˜…
Browse files Browse the repository at this point in the history
  • Loading branch information
felixmosh committed Jun 24, 2024
1 parent 4f308ce commit 75b7b6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/hono/src/HonoAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export class HonoAdapter implements IServerAdapter {

const app = new Hono();

const staticBaseUrlPath = [this.basePath, this.staticPath].join('/').replace(/\/{2,}/g, '/');
const staticBaseUrlPath = [this.basePath, this.staticRoute].join('/').replace(/\/{2,}/g, '/');
app.get(
`${this.staticRoute}/*`,
this.serveStatic({
Expand Down

0 comments on commit 75b7b6b

Please sign in to comment.