1.3 KiB
1.3 KiB
(WIP) akkoma-fe for calckey
installing to a subdirectory
-
First, run these commands:
npm install npm run build cp -r dist YOUR_CALCKEY_DIRECTORY/custom/assets/akkomafe
-
Apply the following patch to calckey, so that the frontend can be accessed from a nicer path and to make signing in work due to oauth token callbacks (yeah i hardcoded paths).
diff --git a/packages/backend/src/server/web/index.ts b/packages/backend/src/server/web/index.ts index 642a17d57..714edc543 100644 --- a/packages/backend/src/server/web/index.ts +++ b/packages/backend/src/server/web/index.ts @@ -141,6 +141,18 @@ router.get("/apple-touch-icon.png", async (ctx) => { }); }); +router.get("/akkomafe", async (ctx) => { + await send(ctx as any, '/akkomafe/index.html', { + root: staticAssets, + }); +}); + +router.get("/akkomafe/(.*)", async (ctx) => { + await send(ctx as any, '/akkomafe/index.html', { + root: staticAssets, + }); +}); + router.get("/twemoji/(.*)", async (ctx) => { const path = ctx.path.replace("/twemoji/", "");
-
Rebuild calckey and your akkoma-fe should be accesible at
/akkomafe
!
developing (live reload, proxied apis, etc.)
See For Contributors section in the akkoma readme.