OD1995
OD1995

Reputation: 1777

React app logs on Google App Engine says "Starting the development server..." and takes 30+ seconds to start

I have deployed a React app to Google App Engine (using an F2 instance, nodejs16 runtime) and the start up is incredibly slow, at least 30 seconds. I've also noticed in the logs that it says "Starting the development server...", which seems bad because it's obviously in production.

Are the two things related? And, either way, should I be doing something so that a production server is being started? Before deploying, I did run npm run build and so the build folder has been included in the deployment

Upvotes: 0

Views: 112

Answers (1)

OD1995
OD1995

Reputation: 1777

In the end, I realised that I should only have deployed my build files to Google App Engine and not the entire codebase.

I also switched to Netlify from GAE because it was free.

Upvotes: 1

Related Questions