yeah I wouldn't overlap utility funcs names w/ onRequest but I think as long as say /functions/util.

yeah I wouldn't overlap utility funcs names w/ onRequest but I think as long as say /functions/util.js or /functions/googleOauth.js isn't treated as an api endpoint on my actual cf pages site exporting functions like:

export function getTime() {
...
}

export function getGoogleOauthToken() {
..
}

Then it should be fine.

I think this ties into wrangler and esbuild in some way but im not really sure since its not documented for cf functions how the functions are built, ie: the treatment of utility and helper methods in the /functions dir

I also think this relates somewhat to 'npx wrangler pages functions build' to see what the actual build file being deployed actually is, how its compiled but im not certain about that either lol

Thanks for the input/feedback anyways @[@] ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ. ๐ŸŽŠ ๐ŸŽŠ ๐ŸŽŠ
Was this page helpful?