SML
SML
Explore posts from servers
CDCloudflare Developers
Created by SML on 10/10/2024 in #general-help
Argo billing
1. Is Argo enabled per domain or per account? When I tried to test it with one of my domains, the system asked me if I would enable it for my account, and I don’t want to enable it for every domain on my account. 2. How do you determine the size? Would it be the total request size as observed by the “total data served” on my panel? Trying to determine if I could afford this since most of my sites are image heavy, and I mainly want to use Argo for the HTML. Don’t know which tag to use so I picked DNS…
7 replies
CDCloudflare Developers
Created by SML on 7/25/2024 in #pages-help
Grant deployment read only access to ONE project in an account?
I need to give a developer access to read the build logs (mainly, so he can see why the build fails), but I don’t want him to see any domain level access or other domain specific settings. Nor should he be able to edit anything. Is it possible to see build logs on ONE page? If not, I saw that it’s possible to do this with API, is that the recommended way? For me to build some type of build tools myself to integrate with the API? Is this pluggable as a github action maybe? I know that this is very granular settings but I don’t feel that a developer on one site should see all my other domains / how to manage even the domain he is building for unnecessarily.
1 replies
CDCloudflare Developers
Created by SML on 6/25/2024 in #pages-help
Nuxt Pre-Render error
I have been getting prerender errors that I can’t solve. The site builds perfectly locally but on Cloudflare pages, at the end of a long build, it gives 500 errors for things that work, and then at the 10th 500 error, it quits. I wonder if I should open a support ticket but I don’t know if it’s a nitro issue or not. I posted on the Nuxt server also but since this builds perfectly in local, I don’t know if it’s truly a Nuxt issue.
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json (10ms)
2024… [log] [nitro]
2024… Errors prerendering:
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (156ms)
2024… │ └── Error: [500]
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (159ms)
2024… │ └── Error: [500]
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (152ms)
2024… │ └── Error: [500]
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (73ms)
2024… │ └── Error: [500]
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (90ms)
2024… │ └── Error: [500]
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (87ms)
2024… │ └── Error: [500]
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (92ms)
2024… │ └── Error: [500]
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (94ms)
2024… │ └── Error: [500]
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (89ms)
2024… │ └── Error: [500]
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (88ms)
2024… │ └── Error: [500]
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (85ms)
2024… │ └── Error: [500]
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (102ms)
2024… │ └── Error: [500]
2024… [log] [nitro]
2024… [error] Exiting due to prerender errors.
2024… at prerender (node_modules/.pnpm/[email protected]_@[email protected]/node_modules/nitropack/dist/chunks/prerender.mjs:218:11)
2024… at async node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/nuxt/dist/index.mjs:3540:7
2024… at async build (node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/nuxt/dist/index.mjs:5333:5)
2024… at async Object.run (node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/chunks/build.mjs:94:5)
2024… at async runCommand$1 (node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/shared/nuxi.6aad497e.mjs:1648:16)
2024… at async runCommand$1 (node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/shared/nuxi.6aad497e.mjs:1639:11)
2024… at async runMain$1 (node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/shared/nuxi.6aad497e.mjs:1777:7)
2024…
2024… [error] Exiting due to prerender errors.
2024… Failed: Error while executing user command. Exited with error code: 1
2024… Failed: build command exited with code: 1
2024… Failed: error occurred while running build command
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json (10ms)
2024… [log] [nitro]
2024… Errors prerendering:
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (156ms)
2024… │ └── Error: [500]
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (159ms)
2024… │ └── Error: [500]
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (152ms)
2024… │ └── Error: [500]
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (73ms)
2024… │ └── Error: [500]
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (90ms)
2024… │ └── Error: [500]
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (87ms)
2024… │ └── Error: [500]
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (92ms)
2024… │ └── Error: [500]
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (94ms)
2024… │ └── Error: [500]
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (89ms)
2024… │ └── Error: [500]
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (88ms)
2024… │ └── Error: [500]
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (85ms)
2024… │ └── Error: [500]
2024… [log] [nitro] ├─ /image/__img__blog__…/_payload.json?1a968b79-4fdc-4a18-9a8c-ff920aca6345 (102ms)
2024… │ └── Error: [500]
2024… [log] [nitro]
2024… [error] Exiting due to prerender errors.
2024… at prerender (node_modules/.pnpm/[email protected]_@[email protected]/node_modules/nitropack/dist/chunks/prerender.mjs:218:11)
2024… at async node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/nuxt/dist/index.mjs:3540:7
2024… at async build (node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/nuxt/dist/index.mjs:5333:5)
2024… at async Object.run (node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/chunks/build.mjs:94:5)
2024… at async runCommand$1 (node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/shared/nuxi.6aad497e.mjs:1648:16)
2024… at async runCommand$1 (node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/shared/nuxi.6aad497e.mjs:1639:11)
2024… at async runMain$1 (node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/shared/nuxi.6aad497e.mjs:1777:7)
2024…
2024… [error] Exiting due to prerender errors.
2024… Failed: Error while executing user command. Exited with error code: 1
2024… Failed: build command exited with code: 1
2024… Failed: error occurred while running build command
1 replies
CDCloudflare Developers
Created by SML on 5/15/2024 in #general-help
Mapping /blog to a site hosted on cloudflare pages?
I know that it is possible to host cloudflare pages on a subdomain like blog.royaleapi.com. But is it possible to host a cloudflare page as royaleapi.com/blog? The reason I want to do this because our blog currently exists under royaleapi.com/blog and it has built up reputation on google as well as advertising networks. If we move to a different domain, it will affect ranking and revenues in an undesirable way. If I use redirect, e.g. /blog to blog.royaleapi.com my understanding is because the target domain will still be on a different domain, it will still create issue. So I’d like to know if it’s possible to put the CF page on blog.royaleapi.com/$1 but also have it exist as royaleapi.com/blog/$1 If so, how?
2 replies
CDCloudflare Developers
Created by SML on 2/7/2024 in #general-help
Cloudflare AI Workers
I am testing to implement the CF txt2img into an existing service (e.g. discord, webapp), to allow people to try making images in limited quantieis. But I am worried about the eventual pricing — ie. would I be able to support it eventually when the feature is live? Would you be able to give me a cost estimate / pricing structure plans so I can evaluate if it even makes sense for me to implement? Thanks!
3 replies
CDCloudflare Developers
Created by SML on 12/31/2023 in #general-help
Cloudflare Image Resize - origin only
I’m trying to understand exactly what origin only meant — does it mean that: 1. it will only accept image resize URLs that are served from the domain, or 2. that it will only allow images from the domain Primarily, I’m concerned that if I enabled this option, would it prevent Google from being able to serve the images on google images since now the request would come from Google and not the domain. I didn’t really want to test it on a live site to see the behavior because I don’t want our images to disappear from google all of a sudden. (obviously)
1 replies
CDCloudflare Developers
Created by SML on 12/6/2023 in #general-help
How do set cache duration for image resize?
I’m using Cloudflare Image Resizing to serve images from S3. After implementing it, CF billed me for 800k image resize request in October. That’s ok coz I thought that maybe it’s just the initial request. In November, it billed me for 900k image resize request. I thought that cached images are no longer billed? (i.e. only the first resize is billed). And if that’s the case, the only reasonable explanation is that the images are not being cached for a long time. Questions: 1. Is there a way to set the cache to be the entire year? 2. If so, how would I do that? 3. Would I add a Page rule? 4. Should I instead set the cache control on S3? Not entirely sure how to do that but if that’s the only way, I will investigate.
23 replies
CDCloudflare Developers
Created by SML on 6/11/2023 in #general-help
Nuxt3 with Cloudflare Pages - Error: Cannot resolve "emitter" from index.js
I follow the instructions on https://blog.cloudflare.com/pages-full-stack-frameworks/ and ran:
NITRO_PRESET=cloudflare-pages npx nuxi build
NITRO_PRESET=cloudflare-pages npx nuxi build
It gave an error but I don’t know what it’s complaining:
Error: Cannot resolve "emitter" from "/path/to/node_modules/batch/index.js" and externals are not allowed!
Error: Cannot resolve "emitter" from "/path/to/node_modules/batch/index.js" and externals are not allowed!
I wanted to build edge-side render on cloudflare pages.
2 replies