DEV Community

Discussion on: Using Create-React-App with Express

Collapse
 
loujaybee profile image
Lou (🚀 Open Up The Cloud ☁️)

Thanks @bordenjardine . The post does currently refer to the build folder:

app.use(express.static(path.join(__dirname, 'build')));

But depending on how you're referencing the build folder it may depend on where you're the server start commands from. Try as @jaspersurmont to ensure that you're correctly pointing to the build folder, and that it has at the least an index.html inside.