Compare commits
2 Commits
49b6f79545
...
0ee01bc313
| Author | SHA1 | Date | |
|---|---|---|---|
| 0ee01bc313 | |||
| 14b0a44117 |
@@ -67,7 +67,8 @@ export default function EventPage() {
|
|||||||
.then(({ io }) => {
|
.then(({ io }) => {
|
||||||
if (!mounted) return;
|
if (!mounted) return;
|
||||||
const socketPort = process.env.NEXT_PUBLIC_SOCKET_PORT || "4000";
|
const socketPort = process.env.NEXT_PUBLIC_SOCKET_PORT || "4000";
|
||||||
const socket = io(`http://10.20.0.188:${socketPort}`, {
|
const socketHost = process.env.NEXT_PUBLIC_SOCKET_HOST || window.location.hostname;
|
||||||
|
const socket = io(`http://${socketHost}:${socketPort}`, {
|
||||||
autoConnect: true
|
autoConnect: true
|
||||||
});
|
});
|
||||||
socketRef.current = socket;
|
socketRef.current = socket;
|
||||||
|
|||||||
@@ -1,7 +1,12 @@
|
|||||||
import type { NextConfig } from "next";
|
import type { NextConfig } from "next";
|
||||||
|
|
||||||
const nextConfig: NextConfig = {
|
const nextConfig: NextConfig = {
|
||||||
/* config options here */
|
allowedDevOrigins: ["10.20.0.188"],
|
||||||
|
experimental: {
|
||||||
|
turbo: {
|
||||||
|
// Turbopack specific configuration if needed
|
||||||
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
export default nextConfig;
|
export default nextConfig;
|
||||||
|
|||||||
Reference in New Issue
Block a user