sylvain.pras
CDCloudflare Developers
•Created by sylvain.pras on 6/26/2023 in #functions
Hi everyone
Update : i found out that i should use the build system 2 (beta) of cloudflare instead of build system 1 and use yarn build instead of yarn generate .
Seems can't have static page generation AND functions (via cloudflare workers) at the same time ... and should go full SSR in order to have server middlware on cloudflare workers.
by the way, i still have errors when publishing function
Error: Failed to publish your Function. Got error: Uncaught ReferenceError: global is not defined
at functionsWorker-0.44375225168792043.js:52342:10
3 replies