Skip to content

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

Description

@monim67

What version of HonoX are you using?

honox@0.1.45

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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