's'
This commit is contained in:
15
next.config.ts
Normal file
15
next.config.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import type { NextConfig } from "next";
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
// 局域网访问(如手机 192.168.x.x)时允许跨域请求 _next 资源
|
||||
// 需完全重启 dev 服务(Ctrl+C 后 pnpm dev)后生效
|
||||
allowedDevOrigins: [
|
||||
"192.168.41.222",
|
||||
"192.168.41.222:3000",
|
||||
"http://192.168.41.222",
|
||||
"http://192.168.41.222:3000",
|
||||
"http://192.168.41.222:3001",
|
||||
],
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
Reference in New Issue
Block a user