brunocroh / bolhadev.chat

A free platform for Brazilian developers to improve their English skills.
https://bolhadev.chat
183 stars 19 forks source link

What values i should use in the environment variables? #6

Closed Jackson-Vieira closed 3 months ago

Jackson-Vieira commented 3 months ago

I'm a beginner with Next.js and following the contribution guide, when i run the project and enter in a queue or room, I received an error indicating that a specific environment variable is not specified and has set to undefined.

image

brunocroh commented 3 months ago

Oh, backend is running on port 4000

So the following .envs will works

NEXT_PUBLIC_SOCKET_URL=ws://localhost:4000

I will add it to docs and put a fallback when empty.

Thank you

fabricionaweb commented 3 months ago

Another suggestion would be to have .env.template filled with minimal values as example - instead of empty

brunocroh commented 3 months ago

Added default values to .env.template and mention it on contributing guide. https://github.com/brunocroh/bolhadev.chat/commit/6b03297d0d7340ae75e5ca949cdc162b93490b28