-
Notifications
You must be signed in to change notification settings - Fork 10
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
Can't open a mutliplayer room #4
Comments
The project code is impressive, but it lacks documentation, which can make it difficult to figure out how to configure. To start the project, navigate to the /app directory and use the command 'yarn dev.' Next, open another terminal and go to the /socket directory. From there, use the commands 'npm install' and 'npm start.' It's important to note that the socket expects to see the app running on port 3000, as specified in the code at /monkeytype-clone/socket/build/index.js. Additionally, the code at /monkeytype-clone/app/src/node_modules/next/dist/compiled/regenerator-runtime/runtime.js includes the line 'const API_URL = process.env.NEXT_PUBLIC_API_URL;' dont touch anything ! To configure the project, create a .env variable on the /app dir with the command 'nano .env'( i am using nano editor) and include the following line: 'NEXT_PUBLIC_API_URL=http://localhost:8080/graphql.' Although the project code is impressive, it's crucial to have clear and comprehensive documentation to help users understand how to set it up and use it. I recommend updating the documentation to provide clear instructions on how to configure the project, including all dependencies and configurations required for successful operation. |
you should know what is CORS issue, { cors: { origin: [ "http://localhost:3000", "https://mtype.vercel.app", "https://monkeytype-clone.vercel.app", "https://typez.vercel.app", ], methods: ["GET", "POST"], }, }); check that out cors is giving access to [ "http://localhost:3000", "https://mtype.vercel.app", "https://monkeytype-clone.vercel.app", "https://typez.vercel.app", ] those URL |
Error
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://monkeytype-clone-socket-production.up.railway.app/socket.io/?EIO=4&transport=polling&t=OOF8VSJ. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 404.
Same issue when ran locally.
Might look into it latter.
Best regards.
The text was updated successfully, but these errors were encountered: