The OpenWRT cronjob uses os, util, fs, and process, and they can't be polyfill. However, this is mainly due to a bad design, in which Payload uses the same config file for server and client services.
The best solution is to go back to Webpack bundler because the Vite polyfill approach is not straightforward.
The OpenWRT cronjob uses
os
,util
,fs
, andprocess
, and they can't be polyfill. However, this is mainly due to a bad design, in which Payload uses the same config file for server and client services.The best solution is to go back to Webpack bundler because the Vite polyfill approach is not straightforward.