kleinptr
04/12/2023, 11:22 AMpostinstall
script which call nuxt prepare
and it looks that not all deps are already installed at this moment so I am getting an error, especially with Pinia
[error] Cannot find module 'pinia/dist/pinia.mjs'
In my build command I'set install explicitly pnpm i && pnpm build
so how can I prevent to trigger postinstall
before my build command is called?rising_phoenix
04/12/2023, 11:49 AMidrleon
04/12/2023, 1:17 PM/opt/buildhome/repo/
. I believe this might have changed in the past 6 days.
When Cloudflare builds:
Remote Theme: Using theme pmarsceill/just-the-docs
Remote Theme: Downloading https://codeload.github.com/pmarsceill/just-the-docs/zip/v0.2.7 to /opt/buildhome/repo/jekyll-remote-theme-20230412-14794-svae9e.zip
Remote Theme: Unzipping /opt/buildhome/repo/jekyll-remote-theme-20230412-14794-svae9e.zip to /opt/buildhome/repo/jekyll-remote-theme-20230412-14794-j3aea2
When building locally:
Remote Theme: Using theme pmarsceill/just-the-docs
Remote Theme: Downloading https://codeload.github.com/pmarsceill/just-the-docs/zip/v0.2.7 to /tmp/jekyll-remote-theme-20230412-93-vzhns2.zip
Remote Theme: Unzipping /tmp/jekyll-remote-theme-20230412-93-vzhns2.zip to /tmp/jekyll-remote-theme-20230412-93-pdotqn
Basically, when building in Cloudflare, the parent theme zip is downloaded inside the repo directory where its contents are seen as part of our site, which causes the build error.
I've had to enable verbose mode to generate the above output so unfortunately can't see which directory was used when it was working without error 6 days ago. But obviously can see that it uses /tmp
when we run the build locally.DaveJ
04/12/2023, 3:31 PMhttps://4222d427.my-website.pages.dev/cdn-cgi/image/width=48,height=48,f=auto/_app/immutable/assets/test-6fef8284.jpeg▾
bim
04/12/2023, 3:53 PMError: The script will never generate a response
or Error: Promise will never complete
when navigating in the app to a page that loads data from a load function or endpoint. It seems to happen randomly but frequently, and when it does happen, if I refresh the page, the data will load properly.
The same app deployed on Vercel works perfectly fine.
Any ideas on what I may be doing wrong?Freedom
04/12/2023, 10:59 PM심윤섭
04/13/2023, 6:05 AMpeter-lustig
04/13/2023, 10:31 AMamorfati
04/13/2023, 12:15 PMAstro
website, I've set the framework preset 10 times, every time it changes to something else like in the pic. I tried redeploying, it keeps changing the choice I savedLeftb
04/13/2023, 12:23 PMkrn
04/13/2023, 5:23 PMCole Xemi
04/13/2023, 5:38 PMysmdev
04/13/2023, 7:15 PMShervanator
04/14/2023, 5:26 AMnpx wrangler pages publish /output --project-name xxx --branch=staging
This was working fine, but recently we have added more files to the site and its now failing. It was around 2500 files before, and now its ~5000. The error I am getting is the following:
🌍 Uploading... (444/5248)
/Users/xxxxx/.npm/_npx/xxxxx/node_modules/wrangler/wrangler-dist/cli.js:30488
throw a;
^
FatalError: Failed to upload files. Please try again. Error: {"cause":{"name":"HeadersTimeoutError","code":"UND_ERR_HEADERS_TIMEOUT","message":"Headers Timeout Error"}})
at /Users/xxxxx/.npm/_npx/xxxxx/node_modules/wrangler/wrangler-dist/cli.js:145514:13
at async run (/Users/xxxxx/.npm/_npx/xxxxx/node_modules/wrangler/wrangler-dist/cli.js:145120:26) {
code: 1
}
Our files are all under the limits detailed here: https://developers.cloudflare.com/pages/platform/limits/
Unless I am interpreting The maximum file size for a single Cloudflare Pages site asset is 25 MiB.
wrong? Our whole site is bigger than 25 MB, but there is no individual asset that is bigger than 25 MB.
If anyone has any ideas that would be very helpful! 😄
account id: 8c9ee80785ec7bd960920b7d4a2a63c0King Mesal
04/15/2023, 3:56 PM403
when using CF Images service via this URL format:
> https://mycustom.domain/cdn-cgi/imagedelivery/
Details:
1. I have my sites in pages.
2. I have a bunch of images stored in images.
3. I know the problem has to do with DNS (custom domains).
4 I have a 2 custom domains that this URL path works just fine
> One of the two is a CNAME from another DNS provider. All good. One is CNAME flattening in the same CF account.
4 It does not work 2 of the custom domains
> Both DNS are managed in other cloudflare accounts with CNAME flattening and one example with subdomain CNAMEs pointing at the pages.dev project.
5. If I use the pages.dev url of my pages projects all the images load just fine.
6. All the SSL certificates are setup, valid, enabled...
Some custom domains working and other failing, but the most baffling part is the case where the subdomain managed in another DNS provider works. But those managed via other cloudflare accounts do not.
Is this a 🐛 ❓jeffo
04/15/2023, 9:31 PMinterface Env {
SCORES: KVNamespace
}
export const onRequestGet: PagesFunction<Env> = async (context) => {
const foo = await context.env.SCORES.get('foo')
return new Response( foo )
}
2. kv namespace config in workers
$ $(yarn global bin)/wrangler kv:namespace list
[
{
"id": "...",
"title": "MY_KV_SCORES",
"supports_url_encoding": true
},
{
"id": "...",
"title": "MY_KV_SCORES_preview",
"supports_url_encoding": true
},
]
3. kv binding in pages
- Variable name: SCORES
- KV namespace: MY_KV_SCORES_preview
4. running local dev environment
command:
wrangler pages dev ./dist --experimental-local --kv=SCORES
output:
Your worker has access to the following bindings:
- KV Namespaces:
- SCORES:
5. if i create a wrangler.toml
with this content:
kv_namespaces = [
{ binding = "SCORES", id = "...", preview_id = "..." }
]
then i get this output:
Your worker has access to the following bindings:
- KV Namespaces:
- SCORES: 058...
- SCORES:
BUT NO MATTER WHAT – i never get the value i get when i call `wrangler kv:key get`:
$ wrangler kv:key get foo --binding=SCORES ; echo
production
$ wrangler kv:key get foo --binding=SCORES --preview ; echo
preview
when i call the function, just get a null value.
🤔steve
04/16/2023, 2:12 PMCannot find module 'node:buffer'
Works fine on local machine, build is successful and exports the build to .vercel/
folderpeter7a
04/17/2023, 8:19 AMishan02016
04/17/2023, 9:24 AMremix: not found
Help needed!dkfdkdodkms
04/17/2023, 5:48 PMserps
04/17/2023, 7:02 PMrusticXploit
04/18/2023, 1:33 AMOr
04/18/2023, 6:33 AMquambo
04/18/2023, 8:24 AM/* /index.html 200
Our deployment from 15h ago
https://40f40083.console-ey3.pages.dev/
Our deployment of today
https://4cedd8d6.console-ey3.pages.dev/
It keeps on redirecting to index.html and loops on there. We have made no changes to our config.jamuse
04/18/2023, 11:20 AMVero 🐙
04/21/2023, 8:26 AMelijah
04/18/2023, 5:23 PMSuccess: Assets published!
Error: Failed to publish your Function. Got error: Unknown internal error occurred.
Our project does not contain any functions that are to be published, any help is greatly appreciated.botabit
04/18/2023, 5:50 PMnext.config.js
js
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
experimental: {
runtime: "experimental-edge",
},
rewrites: () => [
{
source: "/test.txt",
destination: "/api/test",
},
],
};
module.exports = nextConfig;
/api/test.ts
ts
function generateText(adsTxt: any) {
return adsTxt;
}
export const config = {
runtime: "edge",
};
export default async function handler(req: any) {
return new Response(generateText('test'), {
status: 200,
headers: {
"Content-Type": "text/text",
},
});
}
Pages.dev id 6e6ad55030ab3f7f2045eccf0d33501c
enigmatix
04/18/2023, 5:50 PM