I have a modern web part built for sharepoint Online. I want to convert this web part to be compatible with sharepoint on-prem 2019.
I have searched and found out that I would need to use spfx version 1.4.1 for on prem-19. So I will downgrade my Spfx to 1.4.1
The confusion I have is around the content of my .yo-rc.json file
{
"@microsoft/generator-sharepoint": {
"version": "1.4.1",
"libraryName": "Test",
"libraryId": "",
"environment": "spo",
"isDomainIsolated": false,
"isCreatingSolution": true,
"packageManager": "npm",
"componentType": "webpart"
}
}
Here the environment is targeting 'spo'. Is it possible to make it work with out creating a new separate project? Can I Scaffold an existing projects to make it work on sharepoint on-prem 2019