换 接口服务

This commit is contained in:
北枳 2025-09-05 20:46:15 +08:00
parent 54e781d8d7
commit 5faa1c2655
7 changed files with 15 additions and 30 deletions

View File

@ -1,3 +0,0 @@
{
"template": "nextjs-shadcn"
}

View File

@ -1,2 +0,0 @@
components/ui/*
hooks/use-toast.ts

View File

@ -1,9 +0,0 @@
For all designs I ask you to make, have them be beautiful, not cookie cutter. Make webpages that are fully featured and worthy for production.
When using client-side hooks (useState and useEffect) in a component that's being treated as a Server Component by Next.js, always add the "use client" directive at the top of the file.
Do not write code that will trigger this error: "Warning: Extra attributes from the server: %s%s""class,style"
By default, this template supports JSX syntax with Tailwind CSS classes, the shadcn/ui library, React hooks, and Lucide React for icons. Do not install other packages for UI themes, icons, etc unless absolutely necessary or I request them.
Use icons from lucide-react for logos.

View File

@ -1,7 +1,8 @@
NEXT_PUBLIC_JAVA_URL = https://77.app.java.auth.qikongjian.com
NEXT_PUBLIC_BASE_URL = http://77.smartvideo.py.qikongjian.com
# NEXT_PUBLIC_BASE_URL = https://pre.movieflow.api.huiying.video
NEXT_PUBLIC_API_BASE_URL = https://77.api.qikongjian.com
# NEXT_PUBLIC_JAVA_URL = https://77.app.java.auth.qikongjian.com
# NEXT_PUBLIC_BASE_URL = https://77.smartvideo.py.qikongjian.com
NEXT_PUBLIC_JAVA_URL = http://test.java.movieflow.ai
NEXT_PUBLIC_BASE_URL = http://test.video.movieflow.ai
# 失败率
NEXT_PUBLIC_ERROR_CONFIG = 0.2

View File

@ -1,7 +1,7 @@
NEXT_PUBLIC_BASE_URL = https://77.smartvideo.py.qikongjian.com
# NEXT_PUBLIC_BASE_URL = https://pre.movieflow.api.huiying.video
NEXT_PUBLIC_API_BASE_URL = https://77.api.qikongjian.com
NEXT_PUBLIC_JAVA_URL = https://77.app.java.auth.qikongjian.com
# NEXT_PUBLIC_JAVA_URL = https://77.app.java.auth.qikongjian.com
# NEXT_PUBLIC_BASE_URL = https://77.smartvideo.py.qikongjian.com
NEXT_PUBLIC_JAVA_URL = http://test.java.movieflow.ai
NEXT_PUBLIC_BASE_URL = http://test.video.movieflow.ai
# 失败率
NEXT_PUBLIC_ERROR_CONFIG = 0.2

View File

@ -80,13 +80,11 @@ export default function RootLayout({
}}
>
<CallbackModalContext.Provider value={{ setShowCallbackModal }}>
<Providers>
{/* <ScreenAdapter /> */}
<div id="app" className='h-full w-full'>
{children}
{showCallbackModal && <CallbackModal onClose={() => setShowCallbackModal(false)} />}
</div>
</Providers>
</CallbackModalContext.Provider>
</ConfigProvider>
</body>

View File

@ -35,7 +35,7 @@ const nextConfig = {
async rewrites() {
// 使用环境变量,如果没有则使用默认值
const BASE_URL = process.env.NEXT_PUBLIC_BASE_URL || 'https://77.smartvideo.py.qikongjian.com'
const BASE_URL = process.env.NEXT_PUBLIC_BASE_URL
// const BASE_URL = 'http://192.168.120.5:8000'
return [
{