Skip to content

basePath has no effect on app created by honox createApp #316

@monim67

Description

@monim67

What version of HonoX are you using?

[email protected]

What steps can reproduce the bug?

Setting basePath in the following way doesn't work in server.ts

import { showRoutes } from "hono/dev";
import { createApp } from "honox/server";

const app = createApp().basePath("/api");

showRoutes(app);

export default app;

What is the expected behavior?

Following routes

GET /api
GET /api/test

What do you see instead?

Following routes

GET /
GET /test

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions