mirror of
https://github.com/documenso/documenso.git
synced 2026-08-24 15:22:26 +10:00
feat(remix): support serving app under a sub-path via NEXT_PUBLIC_BASE_PATH (#2824)
This commit is contained in:
@@ -46,7 +46,9 @@ export interface HonoEnv {
|
||||
};
|
||||
}
|
||||
|
||||
const app = new Hono<HonoEnv>();
|
||||
const basePath = (env('NEXT_PUBLIC_BASE_PATH') ?? '').replace(/\/$/, '');
|
||||
|
||||
const app = new Hono<HonoEnv>().basePath(basePath || '/');
|
||||
|
||||
/**
|
||||
* Database-backed rate limiting for API routes.
|
||||
|
||||
Reference in New Issue
Block a user