Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Socket server locally #3063

Merged
merged 3 commits into from
Nov 10, 2023
Merged

Socket server locally #3063

merged 3 commits into from
Nov 10, 2023

Conversation

mattcasey
Copy link
Member

@mattcasey mattcasey commented Nov 8, 2023

WHAT

🤖 Generated by Copilot at 9bd1ba4

Updated the app's environment and socket configuration. Added a new variable to .env.example and package.json to set the socket server host. Modified the isDevEnv constant in config/constants.ts to use NODE_ENV as a fallback.

WHY

So it turns out that Next 14 FIXED the issue with socket.io: vercel/next.js#49334. However, I think it's worth keeping the separation because it is a closer mirror to production and testing. I believe we can actually delete the socket.io endpoint that Next.js serves, but i'll save that for another PR

@mattcasey mattcasey merged commit 2b0071e into main Nov 10, 2023
@mattcasey mattcasey deleted the socket-server-locally branch November 10, 2023 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants