Fixes dev server issues, adds frontend proxy

This commit is contained in:
Emma
2023-06-11 14:15:44 -06:00
parent b951d1970d
commit 8fb7494464
6 changed files with 30 additions and 12 deletions

7
middleware/debugLog.ts Normal file
View File

@@ -0,0 +1,7 @@
import { Context, Middleware } from "oak";
export const debugLog = (message: string | ((arg: Context) => string)): Middleware =>
async (ctx, next) => {
console.log(typeof message === 'function' ? message(ctx) : message);
await next();
}