- Extend the `allowedDevOrigins` in `next.config.ts` to include "118.89.89.89" for enhanced development flexibility. - Add a new `.DS_Store` file in the `scripts` directory, which is a system file created by macOS for folder metadata.
17 lines
424 B
TypeScript
17 lines
424 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
/* config options here */
|
|
allowedDevOrigins: [
|
|
"127.0.0.1",
|
|
"118.89.89.89",
|
|
],
|
|
// 钉死项目根,避免容器内 bind-mount 时 Turbopack 把根推断成 /app/src/app。
|
|
// __dirname 即本配置所在目录(容器内 = /app,宿主机 = ai-video/frontend)。
|
|
turbopack: {
|
|
root: __dirname,
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|