If you are getting uid===-1 on the /api/config route it means your request was classified as a spider. https://github.com/NodeBB/NodeBB/blob/master/src/routes/authentication.js#L38
Any hook to nodebb build to perform custom steps
Is there any hook to perform custom steps, I need to change some text in .tpl file. I am using
sedcommand to perform replacement, this step need to be placed before "nodebb build", and another replacement using
sedneed to be placed after "nodebb build". So I need the hooks, or is there any way to modify source code to get the same results? Thanks in advance.
If all you need to change is a template file, you can just edit the template file stored in
static:app.loadhook. Since templates are compiled on demand, this will work as long as
./nodebb buildis run afterwards.