CandyViz
12/29/2022, 8:10 PMWalshy | Pages
12/29/2022, 8:14 PMCandyViz
12/30/2022, 12:21 AMJustinNoel
12/30/2022, 2:29 PMmydomain.com/profile-photos/ABC123.jpg?width=1024,quality=75
etc
4) In my function for that route, I proxy the request to the public R2 domain to something like: mydomain.com/cdn-cgi/image/width=1024,quality=75/https://pub-MY_PUBLIC_R2_DOMAIN_HERE.r2.dev/ABC123.jpg
It works great and I get a response: cf-resized: internal=ok/- q=0 n=280 c=15+87 v=2022.12.7 l=79202
Epailes
12/30/2022, 2:34 PMJustinNoel
12/30/2022, 2:35 PMEpailes
12/30/2022, 2:36 PMWalshy | Pages
12/30/2022, 2:39 PMWalshy | Pages
12/30/2022, 2:41 PMCandyViz
12/30/2022, 5:46 PMoptions.cf.image.draw.push({});
option. Like I said I have it working in plain workers at the moment but would love to use functions from a code stand point so I can have it all live with my other functions and deploy it all in the same way.akshay
12/30/2022, 9:15 PM12:50:36.162 Verify run directory
12:50:36.162 Executing user command: npx @cloudflare/next-on-pages
12:50:36.330 /opt/buildhome/repo/node_modules/@cloudflare/next-on-pages/dist/index.js:6013
12:50:36.330 ({ type, expression }) => type === "ExpressionStatement" && expression?.type === "CallExpression" && expression.callee?.type === "MemberExpression" && expression.callee.object?.type === "AssignmentExpression" && expression.callee.object.left?.object?.name === "self" && expression.callee.object.left.property?.value === "webpackChunk_N_E" && expression.arguments?.[0]?.elements?.[1]?.type === "ObjectExpression"
12:50:36.330 ^
12:50:36.331
12:50:36.332 SyntaxError: Unexpected token '.'
12:50:36.333 at wrapSafe (internal/modules/cjs/loader.js:1054:16)
12:50:36.333 at Module._compile (internal/modules/cjs/loader.js:1102:27)
12:50:36.333 at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
12:50:36.333 at Module.load (internal/modules/cjs/loader.js:986:32)
12:50:36.333 at Function.Module._load (internal/modules/cjs/loader.js:879:14)
12:50:36.334 at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
12:50:36.335 at internal/main/run_main_module.js:17:47
12:50:36.344 Failed: build command exited with code: 1
12:50:37.301 Failed: an internal error occurred
James
12/30/2022, 9:33 PMNODE_VERSION
env var set to? It'll need to be at least 16
James
12/30/2022, 9:33 PMnext-on-pages
if you run into any issues. Its state of maintenance and support right now is questionable, and I've seen others have more success with Netlify or Vercel for their projects.Nakedible
12/31/2022, 3:45 PMJames
12/31/2022, 4:25 PMNakedible
12/31/2022, 5:25 PMEpailes
01/01/2023, 5:04 PMNakedible
01/01/2023, 11:25 PMbkyerv
01/02/2023, 3:48 AM"Error: To use the new ReadableStream() constructor, enable the streams_enable_constructors feature flag."
. Has someone come across similar error? what could be the reason for this error message? I have not change anything substantially in the functionsakshay
01/02/2023, 5:59 AMdenniarems
01/02/2023, 6:36 AMaravindhan.dev
01/02/2023, 6:50 AMJustinNoel
01/02/2023, 11:18 PMrising_phoenix
01/03/2023, 7:47 AM/helloworld
URL gives 404 and even the function itself is undetected in the Cloudflare dashboard even though I can see that the file is uploaded.
Am I missing something, should I compile js something like that?kian
01/03/2023, 8:21 AMVero 🐙
01/03/2023, 9:20 AMbkyerv
01/03/2023, 9:51 AMkian
01/03/2023, 9:52 AMkian
01/03/2023, 9:52 AMVero 🐙
01/03/2023, 11:15 AM