From 9424758af566a8e283bb6da36105a8283ca35854 Mon Sep 17 00:00:00 2001 From: AmirReza Jamali Date: Mon, 1 Jun 2026 13:14:25 +0330 Subject: [PATCH] fix(next.config): correct comment formatting for BACKEND_API_BASE_URL warning - Updated comment in next.config.mjs to improve clarity regarding the implications of setting BACKEND_API_BASE_URL in the environment file. - Added "use client" directive in tableSortContext.ts to indicate client-side rendering for the context component. --- next.config.mjs | 2 +- src/components/ui/tableSortContext.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/next.config.mjs b/next.config.mjs index cdcfb68..5e2aab0 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -40,7 +40,7 @@ const nextConfig = { // Routing is host-based so neither deploy needs a custom env. A // `BACKEND_API_BASE_URL` env var (if set) overrides both — handy for local // dev pointing at e.g. http://localhost:8080/admin/v1. - //! ⚠️ IMPORTANT: Adding BACKEND_API_BASE_URL to env file will break the multi-domain feature. + // ! ⚠️ IMPORTANT: Adding BACKEND_API_BASE_URL to env file will break the multi-domain feature. const override = process.env.BACKEND_API_BASE_URL; if (override) { return [ diff --git a/src/components/ui/tableSortContext.ts b/src/components/ui/tableSortContext.ts index 78acbcf..3c4aac5 100644 --- a/src/components/ui/tableSortContext.ts +++ b/src/components/ui/tableSortContext.ts @@ -1,3 +1,5 @@ +"use client"; + import { createContext } from "react"; export type SortDirection = "asc" | "desc";