lazarv / react-server

The easiest way to build React apps with server-side rendering
https://react-server.dev
MIT License
118 stars 6 forks source link

Error generating the project build within Docker. #40

Open ericdmachado opened 1 month ago

ericdmachado commented 1 month ago

Describe the bug

I'm trying to build the project inside a docker image. And when I run the "pnpm start" command, the server doesn't run. Running it on the local machine works normally.

Reproduction

https://github.com/ericdmachado/react-server-test

Steps to reproduce

You need to have docker and docker compose running.

Docker https://docs.docker.com/engine/install/

Docker Compose https://docs.docker.com/compose/install/

Then, run the command docker compose -up -d --build --force-recreate

System Info

Node 20-alpine and npm 10.8.2

Used Package Manager

pnpm

Logs

No response

Validations

lazarv commented 1 month ago

Hi @ericdmachado! I can't reproduce your issue using the latest version of @lazarv/react-server. You no longer need to install @lazarv/react-server-router to use the file-system based routing.

Could you please share the logs? It would help to get a better understanding on the issue. Please use the instructions provided in the issue template to collect the information. When using Docker start your container providing the DEBUG=* environment variable to get a full debug log and please share the container logs.