Fixed use server structure on core

This commit is contained in:
2026-02-17 03:39:54 +01:00
parent 49ed1a5f36
commit 75c09dfc58
5 changed files with 4 additions and 12 deletions
+1 -2
View File
@@ -1,7 +1,6 @@
"use server"; import "server-only";
import { SupabaseClient, User } from "@supabase/supabase-js"; import { SupabaseClient, User } from "@supabase/supabase-js";
import "server-only";
import { UserProfile } from "../user/types"; import { UserProfile } from "../user/types";
export async function signInWithGitHub(supabase: SupabaseClient) { export async function signInWithGitHub(supabase: SupabaseClient) {
+1 -2
View File
@@ -1,7 +1,6 @@
"use server"; import "server-only";
import { SupabaseClient } from "@supabase/supabase-js"; import { SupabaseClient } from "@supabase/supabase-js";
import "server-only";
import { LeaderboardUser } from "./types"; import { LeaderboardUser } from "./types";
export async function getGlobalLeaderboard( export async function getGlobalLeaderboard(
+1 -4
View File
@@ -1,10 +1,7 @@
"use server";
import "server-only"; import "server-only";
import { LiveRun, LiveRunMove } from "./types"; import { LiveRun, LiveRunMove } from "./types";
import { SupabaseClient } from "@supabase/supabase-js";
import { redis } from "@/lib/redis"; import { redis } from "@/lib/redis";
import Redis from "ioredis";
import { applyMoves } from "@/lib/move"; import { applyMoves } from "@/lib/move";
import { supabaseApiClient } from "@/lib/supabase/server"; import { supabaseApiClient } from "@/lib/supabase/server";
+1 -2
View File
@@ -1,6 +1,5 @@
"use server";
import "server-only"; import "server-only";
import { Problem, ProblemDefinition } from "./types"; import { Problem, ProblemDefinition } from "./types";
const problems: ProblemDefinition[] = [ const problems: ProblemDefinition[] = [
-2
View File
@@ -1,3 +1 @@
"use server";
import "server-only"; import "server-only";