DEV Community

loading...

Discussion on: Using Create-React-App with Express

Collapse
loujaybee profile image
Lou — Cloud Engineer Author

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.