Azure Static Web App: “Error: error:0308010C:digital envelope routines::unsupported”
TL;DR You need the latest copy of react scripts installed to avoid the error:0308010C:digital envelope routines::unsupported.
The Azure Static Web Apps are great for quickly creating systems for prototyping or testing ideas and the documentation is pretty good too.
However they have a few problems, not least of which is that out of the box if you try and build the React starter app you’ll get the error message:
Error: error:0308010C:digital envelope routines::unsupported
Fortunately the fix is simple enough, thank you Stack Overflow, just update the create react app scripts.
npm i react-scripts@latest
Then build it again
npm run build
And the issue will go away
TL;CR You need the latest copy of react scripts installed to avoid the error:0308010C:digital envelope routines::unsupported.