removed debug stuff
This commit is contained in:
@@ -1,9 +0,0 @@
|
|||||||
export default defineNuxtRouteMiddleware(() => {
|
|
||||||
const config = useRuntimeConfig();
|
|
||||||
|
|
||||||
if (config.public.DEBUG === "true") {
|
|
||||||
return;
|
|
||||||
} else {
|
|
||||||
return navigateTo("/");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
import fs from "fs/promises";
|
|
||||||
|
|
||||||
export default defineEventHandler(async (event) => {
|
|
||||||
const oldLogs = await fs.readFile(".logs/log.json", "utf-8");
|
|
||||||
return JSON.parse(oldLogs) as Record<any, any>[];
|
|
||||||
});
|
|
||||||
Reference in New Issue
Block a user