This commit is contained in:
hailin 2025-06-25 15:52:29 +08:00
parent d61a2dc385
commit 04b5c0c94e
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
// app/utility/runtime-env-provider.tsx // app/utility/runtime-env-provider.tsx
import { headers, useServerInsertedHTML } from "next/headers"; import { headers } from "next/headers"
import { useServerInsertedHTML } from "next/navigation" // ✅ 改这里
import React from "react"; import React from "react";
export function RuntimeEnvProvider({ children }: { children: React.ReactNode }) { export function RuntimeEnvProvider({ children }: { children: React.ReactNode }) {