Fixed use server structure on core
This commit is contained in:
@@ -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,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,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,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[] = [
|
||||||
|
|||||||
@@ -1,3 +1 @@
|
|||||||
"use server";
|
|
||||||
|
|
||||||
import "server-only";
|
import "server-only";
|
||||||
|
|||||||
Reference in New Issue
Block a user