reavatar
reavatar
Explore posts from servers
CDCloudflare Developers
Created by reavatar on 7/17/2023 in #pages-help
Clerk Sign out issue with Cloudflare Pages Next.js
Following up from here for record, https://discord.com/channels/595317990191398933/1129712984084713472/1129717047312531518 On vercel I get status=401, It occurs when clicked on signout, but it does sign me out fine (log error don't cause any problem). Cloudflare is bit shaky though & I can't completely figure it out. 1. For all sign out buttons ,it logs the clerk auth error. 2. On one instance, even with error, it logs me out fine without causing any trouble on screen. 3. On another instance, it gives me Application error: a client-side exception has occurred (see the browser console for more information). on screen. 4. On a third instance, it's not even signing me out and not giving any error. It just get stuck on signing out.
3 replies
CDCloudflare Developers
Created by reavatar on 6/17/2023 in #pages-help
Refused to execute script because its MIME type ('text/html') is not executable
Hey, I deployed my next.js site with clerkdev authentication on cloudflare. I get this error in console only when user is logged in. Failed to load resource: the server responded with a status of 404 () Refused to execute script from 'https://[mydomain]/_next/static/chunks/webpack-0342d472777da1c1.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled. So, once the user is log in, instead of sign in button, I show sign out button, but the signout button is not visible to user and I get this error. Locally, the code is working perfectly. Strangely, I also have other site deployed on cloudflare with similar code & I get no error there.
5 replies
CDCloudflare Developers
Created by reavatar on 6/14/2023 in #pages-help
Next.js Error: Function Script over 1MiB size limit
Recieved this Error: Failed to publish your Function. Got error: Your Functions script is over the 1 MiB size limit (workers.api.error.script_too_large) How to tackle? All I did was added auth with clerkdev. I am using edge functions.
5 replies