Set markdown renderer as client only to fix hydration issues. Will later try to improve it and set it back as normal

This commit is contained in:
2024-09-09 14:43:53 +02:00
parent 09f4f3c482
commit cbef6d1289
9 changed files with 41 additions and 12 deletions

View File

@@ -5,8 +5,7 @@ export default defineCachedEventHandler(async (e) => {
try
{
const project = getRouterParam(e, "projectId");
const tag = getRouterParam(e, "tag");
const query = getQuery(e);
const tag = decodeURIComponent(getRouterParam(e, "tag") ?? '');
if(!project)
{
@@ -24,6 +23,8 @@ export default defineCachedEventHandler(async (e) => {
const db = useDatabase();
console.log(`SELECT * FROM explorer_tags WHERE ${where.join(" and ")}`, criteria);
const content = db.query(`SELECT * FROM explorer_tags WHERE ${where.join(" and ")}`).get(criteria) as Tag;
if(content !== undefined)