···109109 validate: false, //TODO publish the lexicon so we can validate!
110110 });
111111112112- console.log(
113113- await supabaseServerClient.from("documents").upsert({
114114- uri: result.uri,
115115- data: record as Json,
116116- }),
117117- );
112112+ await supabaseServerClient.from("documents").upsert({
113113+ uri: result.uri,
114114+ data: record as Json,
115115+ });
118116 await Promise.all([
119117 //Optimistically put these in!
120118 supabaseServerClient.from("documents_in_publications").upsert({
···305303 let facets: PubLeafletRichtextFacet.Main[] = [];
306304 let delta = node.toDelta() as Delta[];
307305 let byteStart = 0;
308308- console.log(delta);
309306 for (let d of delta) {
310307 let unicodestring = new UnicodeString(d.insert);
311308 let facet: PubLeafletRichtextFacet.Main = {
···4646 }
4747 case "callback": {
4848 const params = new URLSearchParams(req.url.split("?")[1]);
4949- console.log(params);
50495150 //TODO remember to reset this to a better default!
5251 let redirectPath = "/lish";
···3030 // focus the editor using the mouse position if needed
3131 let nextBlockID = block.value;
3232 let nextBlock = useEditorStates.getState().editorStates[nextBlockID];
3333- console.log(nextBlock);
3433 if (!nextBlock || !nextBlock.view) return;
3534 let nextBlockViewClientRect = nextBlock.view.dom.getBoundingClientRect();
3635 let tr = nextBlock.editor.tr;
+2-2
src/utils/isBot.ts
···11import { cookies, headers, type UnsafeUnwrappedHeaders } from "next/headers";
22export function getIsBot() {
33- const userAgent = (headers() as unknown as UnsafeUnwrappedHeaders).get("user-agent") || "";
44- console.log("User agent: ", userAgent);
33+ const userAgent =
44+ (headers() as unknown as UnsafeUnwrappedHeaders).get("user-agent") || "";
55 const botPatterns = [
66 /bot/i,
77 /crawler/i,