Whey
Whey
CDCloudflare Developers
Created by Chaika on 1/7/2025 in #r2
a cache rule would work fine to bypass
only for the images on my custom domain, not my entire website cache
7 replies
CDCloudflare Developers
Created by Chaika on 1/7/2025 in #r2
a cache rule would work fine to bypass
Thanks for the guide, will give it a try in the morning. Getting late here! 🙂 Thanks for the information too! And you're right maybe I will just edit the system to create a new name every time instead.. But do you know how long the images are cached for by default? And IF I would like to turn of cache or change it for the r2 images, where do I do that?
7 replies
CDCloudflare Developers
Created by Chaika on 1/7/2025 in #r2
a cache rule would work fine to bypass
Do you have a super simple step by step guide what to do? Because I dont follow here 🤔 I'm a beginner!
7 replies
CDCloudflare Developers
Created by Whey on 1/14/2023 in #pages-help
Cant build a page with Sveltekit?
aha :/
19 replies
CDCloudflare Developers
Created by Whey on 1/14/2023 in #pages-help
Cant build a page with Sveltekit?
23:35:50.922 error during build:
23:35:50.922 Error: Build failed with 38 errors:
23:35:50.922 node_modules/ip/lib/ip.js:3:19: ERROR: Could not resolve "os"
23:35:50.922 node_modules/mongodb/lib/cmap/auth/gssapi.js:4:20: ERROR: Could not resolve "dns"
23:35:50.922 node_modules/mongodb/lib/cmap/auth/mongocr.js:4:23: ERROR: Could not resolve "crypto"
23:35:50.922 node_modules/mongodb/lib/cmap/auth/mongodb_aws.js:4:23: ERROR: Could not resolve "crypto"
23:35:50.923 node_modules/mongodb/lib/cmap/auth/mongodb_aws.js:5:21: ERROR: Could not resolve "http"
23:35:50.923 ...
23:35:50.923 at failureErrorWithLog (/opt/buildhome/repo/node_modules/esbuild/lib/main.js:1604:15)
23:35:50.923 at /opt/buildhome/repo/node_modules/esbuild/lib/main.js:1056:28
23:35:50.923 at /opt/buildhome/repo/node_modules/esbuild/lib/main.js:1001:67
23:35:50.923 at buildResponseToResult (/opt/buildhome/repo/node_modules/esbuild/lib/main.js:1054:7)
23:35:50.923 at /opt/buildhome/repo/node_modules/esbuild/lib/main.js:1166:14
23:35:50.924 at responseCallbacks.<computed> (/opt/buildhome/repo/node_modules/esbuild/lib/main.js:701:9)
23:35:50.924 at handleIncomingPacket (/opt/buildhome/repo/node_modules/esbuild/lib/main.js:756:9)
23:35:50.924 at Socket.readFromStdout (/opt/buildhome/repo/node_modules/esbuild/lib/main.js:677:7)
23:35:50.924 at Socket.emit (node:events:513:28)
23:35:50.924 at addChunk (node:internal/streams/readable:315:12)
23:35:50.943 Failed: build command exited with code: 1
23:35:52.167 Failed: an internal error occurred
23:35:50.922 error during build:
23:35:50.922 Error: Build failed with 38 errors:
23:35:50.922 node_modules/ip/lib/ip.js:3:19: ERROR: Could not resolve "os"
23:35:50.922 node_modules/mongodb/lib/cmap/auth/gssapi.js:4:20: ERROR: Could not resolve "dns"
23:35:50.922 node_modules/mongodb/lib/cmap/auth/mongocr.js:4:23: ERROR: Could not resolve "crypto"
23:35:50.922 node_modules/mongodb/lib/cmap/auth/mongodb_aws.js:4:23: ERROR: Could not resolve "crypto"
23:35:50.923 node_modules/mongodb/lib/cmap/auth/mongodb_aws.js:5:21: ERROR: Could not resolve "http"
23:35:50.923 ...
23:35:50.923 at failureErrorWithLog (/opt/buildhome/repo/node_modules/esbuild/lib/main.js:1604:15)
23:35:50.923 at /opt/buildhome/repo/node_modules/esbuild/lib/main.js:1056:28
23:35:50.923 at /opt/buildhome/repo/node_modules/esbuild/lib/main.js:1001:67
23:35:50.923 at buildResponseToResult (/opt/buildhome/repo/node_modules/esbuild/lib/main.js:1054:7)
23:35:50.923 at /opt/buildhome/repo/node_modules/esbuild/lib/main.js:1166:14
23:35:50.924 at responseCallbacks.<computed> (/opt/buildhome/repo/node_modules/esbuild/lib/main.js:701:9)
23:35:50.924 at handleIncomingPacket (/opt/buildhome/repo/node_modules/esbuild/lib/main.js:756:9)
23:35:50.924 at Socket.readFromStdout (/opt/buildhome/repo/node_modules/esbuild/lib/main.js:677:7)
23:35:50.924 at Socket.emit (node:events:513:28)
23:35:50.924 at addChunk (node:internal/streams/readable:315:12)
23:35:50.943 Failed: build command exited with code: 1
23:35:52.167 Failed: an internal error occurred
19 replies
CDCloudflare Developers
Created by Whey on 1/14/2023 in #pages-help
Cant build a page with Sveltekit?
or its not possible to run with packages?
19 replies
CDCloudflare Developers
Created by Whey on 1/14/2023 in #pages-help
Cant build a page with Sveltekit?
ooh thank you. Got a little bit further but a lot of new errors.
23:35:50.922 node_modules/mongodb/lib/cmap/auth/mongocr.js:4:23: ERROR: Could not resolve "crypto"
23:35:50.922 node_modules/mongodb/lib/cmap/auth/mongodb_aws.js:4:23: ERROR: Could not resolve "crypto"
23:35:50.923 node_modules/mongodb/lib/cmap/auth/mongodb_aws.js:5:21: ERROR: Could not resolve "http"
23:35:50.923 ...
23:35:50.923 at failureErrorWithLog (/opt/buildhome/repo/node_modules/esbuild/lib/main.js:1604:15)
23:35:50.923 at /opt/buildhome/repo/node_modules/esbuild/lib/main.js:1056:28
23:35:50.923 at /opt/buildhome/repo/node_modules/esbuild/lib/main.js:1001:67
23:35:50.923 at buildResponseToResult (/opt/buildhome/repo/node_modules/esbuild/lib/main.js:1054:7)
23:35:50.923 at /opt/buildhome/repo/node_modules/esbuild/lib/main.js:1166:14
23:35:50.924 at responseCallbacks.<computed> (/opt/buildhome/repo/node_modules/esbuild/lib/main.js:701:9)
23:35:50.924 at handleIncomingPacket (/opt/buildhome/repo/node_modules/esbuild/lib/main.js:756:9)
23:35:50.924 at Socket.readFromStdout (/opt/buildhome/repo/node_modules/esbuild/lib/main.js:677:7)
23:35:50.924 at Socket.emit (node:events:513:28)
23:35:50.924 at addChunk (node:internal/streams/readable:315:12)
23:35:50.943 Failed: build command exited with code: 1
23:35:52.167 Failed: an internal error occurred
23:35:50.922 node_modules/mongodb/lib/cmap/auth/mongocr.js:4:23: ERROR: Could not resolve "crypto"
23:35:50.922 node_modules/mongodb/lib/cmap/auth/mongodb_aws.js:4:23: ERROR: Could not resolve "crypto"
23:35:50.923 node_modules/mongodb/lib/cmap/auth/mongodb_aws.js:5:21: ERROR: Could not resolve "http"
23:35:50.923 ...
23:35:50.923 at failureErrorWithLog (/opt/buildhome/repo/node_modules/esbuild/lib/main.js:1604:15)
23:35:50.923 at /opt/buildhome/repo/node_modules/esbuild/lib/main.js:1056:28
23:35:50.923 at /opt/buildhome/repo/node_modules/esbuild/lib/main.js:1001:67
23:35:50.923 at buildResponseToResult (/opt/buildhome/repo/node_modules/esbuild/lib/main.js:1054:7)
23:35:50.923 at /opt/buildhome/repo/node_modules/esbuild/lib/main.js:1166:14
23:35:50.924 at responseCallbacks.<computed> (/opt/buildhome/repo/node_modules/esbuild/lib/main.js:701:9)
23:35:50.924 at handleIncomingPacket (/opt/buildhome/repo/node_modules/esbuild/lib/main.js:756:9)
23:35:50.924 at Socket.readFromStdout (/opt/buildhome/repo/node_modules/esbuild/lib/main.js:677:7)
23:35:50.924 at Socket.emit (node:events:513:28)
23:35:50.924 at addChunk (node:internal/streams/readable:315:12)
23:35:50.943 Failed: build command exited with code: 1
23:35:52.167 Failed: an internal error occurred
19 replies
CDCloudflare Developers
Created by Whey on 1/14/2023 in #pages-help
Cant build a page with Sveltekit?
23:18:47.279
23:18:47.287 npm ERR! code ENOTSUP
23:18:47.287 npm ERR! notsup Unsupported engine for @typescript-eslint/[email protected]: wanted: {"node":"^12.22.0 || ^14.17.0 || >=16.0.0"} (current: {"node":"12.18.0","npm":"6.14.4"})
23:18:47.287 npm ERR! notsup Not compatible with your version of node/npm: @typescript-eslint/[email protected]
23:18:47.287 npm ERR! notsup Not compatible with your version of node/npm: @typescript-eslint/[email protected]
23:18:47.287 npm ERR! notsup Required: {"node":"^12.22.0 || ^14.17.0 || >=16.0.0"}
23:18:47.287 npm ERR! notsup Actual: {"npm":"6.14.4","node":"12.18.0"}
23:18:47.297
23:18:47.298 npm ERR! A complete log of this run can be found in:
23:18:47.298 npm ERR! /opt/buildhome/.npm/_logs/2023-01-14T22_18_47_292Z-debug.log
23:18:47.317 Error during NPM install
23:18:47.320 Failed: build command exited with code: 1
23:18:48.175 Failed: an internal error occurred
23:18:47.279
23:18:47.287 npm ERR! code ENOTSUP
23:18:47.287 npm ERR! notsup Unsupported engine for @typescript-eslint/[email protected]: wanted: {"node":"^12.22.0 || ^14.17.0 || >=16.0.0"} (current: {"node":"12.18.0","npm":"6.14.4"})
23:18:47.287 npm ERR! notsup Not compatible with your version of node/npm: @typescript-eslint/[email protected]
23:18:47.287 npm ERR! notsup Not compatible with your version of node/npm: @typescript-eslint/[email protected]
23:18:47.287 npm ERR! notsup Required: {"node":"^12.22.0 || ^14.17.0 || >=16.0.0"}
23:18:47.287 npm ERR! notsup Actual: {"npm":"6.14.4","node":"12.18.0"}
23:18:47.297
23:18:47.298 npm ERR! A complete log of this run can be found in:
23:18:47.298 npm ERR! /opt/buildhome/.npm/_logs/2023-01-14T22_18_47_292Z-debug.log
23:18:47.317 Error during NPM install
23:18:47.320 Failed: build command exited with code: 1
23:18:48.175 Failed: an internal error occurred
19 replies