Georgi Vatsov
Georgi Vatsov
CDCloudflare Developers
Created by Georgi Vatsov on 10/10/2024 in #workers-help
Static assets with cache and Image Optimization
Anyone with an idea how the new feature Static Assets play along with the cache and the image optimization features like Polish and and Image resizing? I enabled it on my project 12 hours ago and I can see all of the requests have Cache status: None in the Dashboard analytics section. Could not find any docs on the topic.
2 replies
CDCloudflare Developers
Created by Georgi Vatsov on 2/18/2024 in #pages-help
Multiple set-cookie headers merged into one
I am using Cloudflare Pages with Next.js + Auth.js for OAuth. Every time I try to log in with (let's say) Google, it's not possible, because the callback response has the session-token cookie merged into the same Set-Cookie directive as pkce.code_verifier. On development I get two Set-cookie headers instead of only one and it works as expected. How can I make sure those headers don't get merged?
1 replies
CDCloudflare Developers
Created by Georgi Vatsov on 7/7/2023 in #pages-help
What i18n libraries work with next-on-pages?
Our company's project is using Next.js and we want to migrate this to the edge using next-on-pages. At the moment we use next-i18next package for the translations, but it seems to be incompatible with the next-on-pages environment requirements. What are our options here for i18n?
15 replies
CDCloudflare Developers
Created by Georgi Vatsov on 2/22/2023 in #pages-help
No client-side navigation on my Next.js project using Pages
I have a small, simple project with two pages that use getServerSideProps to execute a HTTP request and cache it in KV store for consequent requests. However, when I navigate between the two pages I would expect the client-side navigation to kick in. But instead, there's a full load of the page - it works like MPA. Is this expected behavior?
2 replies
CDCloudflare Developers
Created by Georgi Vatsov on 2/22/2023 in #pages-help
No hydration during local development with next-on-pages
I have a small Next.js project. I added a counter with client-side functionality, but my page is not hydrated when I run it locally. If I deploy it to Cloudflare Pages, it's running as expected. Anyone faced such an issue? I am executing npx @cloudflare/next-on-pages --watch and then npx wrangler pages dev .vercel/output/static --compatibility-flags=streams_enable_constructors --kv=FOO.
1 replies
CDCloudflare Developers
Created by Georgi Vatsov on 2/17/2023 in #pages-help
How am I to run my Next.js 13 app with Edge runtime API route with KV bindings locally?
I created a brand new next.js 13 app with Edge runtime API route. This works well both locally and when deployed in CF Pages. I want to add some KV bindings to the project, so I went to the Pages settings and added one. How am I to setup the project so I can test the KV store locally?
2 replies