fix: unblock query cache mutations in demo mode and add cache buster (#6176)

This commit is contained in:
Thomas authored and GitHub committed 2026-07-04 10:47:09 +02:00
1 parent 529942e4da
commit a382c75968
7 files changed
+52 -104

No files matched your search

+2
View File
@@ -116,6 +116,8 @@ const baseProcedure = env.DEMO_MODE ? t.procedure.use(enforceDemoModeReadOnly) :
*/
export const publicProcedure = baseProcedure;
export const internalProcedure = t.procedure;
const enforceUserIsAuthed = t.middleware(({ ctx, next }) => {
if (!ctx.session?.user) {
throw new TRPCError({ code: "UNAUTHORIZED" });