Reputation: 1777
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
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