Closed royberris closed 1 year ago
I was able to resolve it by using the FileRenameAction for now, but the Netlify one should work.
Update: I created my own IPostGenerationAction
which doesn't do anything. But I still get above exception. Seems 'external' post actions are not working at the moment?
Hi, can you let me know which version of Umbraco (and xStatic) you are using here, I'm struggling to replicate locally.
Hi,Latest version of xStatic and Umbraco 10.7
Ah I think I've realised what this is.
For some reason a) the wrong instructions are in the Netlify project and b) they aren't showing on install anyway.
In Startup.cs ConfigureServices you need to add
services.AddNetlifyActions();
Once the services are registered everything should work. Custom actions need to be added to the services collection to get picked up.
@Mulliman ah thanks, that indeed wasn't in the documentation. Makes sense!
Hi,
I have applied the Netlify404Action as seen below. When I add this to my Netlify site and try to build I get an exception.
These are build settings:
I have an Umbraco Node named
404
and I verified it outputs as404/index.html