Hey Guys, I am stuck on this issue while using next-on-pages next-dev module, not able to get local

Hey Guys, I am stuck on this issue while using next-on-pages next-dev module, not able to get local bindings working, (I am currently in process of using t3 stack with next-on-pages & d1 as database)
No description
17 Replies
stillmotion
stillmotion•8mo ago
Is it possible to get a flag like wrangler dev's --remote on the next.js dev server? Doing any sort of integration testing with R2 bindings, for example, is really hard at the moment.
James
James•8mo ago
Afraid not, the bindings in next dev are emulated using miniflare, so it's local only
Pat Branchaud
Pat Branchaud•8mo ago
Trick question, We need a page to query Supabase on edge workers (SSR style) based on url parameters. That page needs to use a layout which fetches data from Firestore at build time. We do not want to fetch Firestore with the workers. How can we mix a statically generated layout at build with dynamic page components generated by Edge?
thanhle
thanhle•8mo ago
Hi everyone, I have a question: I have a nextjs that use next-on-pages to deploy to Pages. is there anyway I can use wrangler to build _worker.js and then deploy it to Workers. I can not use the npx vercel build because the webpack has some issues with one of my library. i try to use node-postgresql library in next-on-pages
Nob
Nob•8mo ago
Hi, I randomly get 500 Internal Server Error when going to my ssr streaming nextjs website, I dont find any other error
Nob
Nob•8mo ago
No description
Nob
Nob•8mo ago
sometimes I get the error 3 times in 1 minute and then I can't get it once in hours
James
James•8mo ago
If you tail your deployment with wrangler what errors are logged?
Nob
Nob•8mo ago
no errors I can't get it anymore 🥲
James
James•8mo ago
do you have smart placement enabled?
Nob
Nob•8mo ago
yes
James
James•8mo ago
it's probably that. smart placement is pretty buggy with pages. i would recommend disabling it and then redeploying
Nob
Nob•8mo ago
okay, I enabled smart placement yesterday and got the errors yesterday and today so it might be that
James
James•8mo ago
that checks out
Taylor
Taylor•8mo ago
where can i find deployment failure logs? i've run bun run deploy and it succesfully deploys but i look at the url it generated and it's nonexisting and in the CF dashboard it says deployment failed.
thanhle
thanhle•8mo ago
Hello everyone: I have a question about the vercel output on next-on-pages: - When I manually change the index.html file (I got this index.html after running “npx @cloudflare/next-on-pages” in the folder to generate the .vercel/output/static folder) in the .vercel/output/static: I mean manually change the text in the index.html from “TestingA” to “TestingB” - Then deploy the static asset and _worker.js to the Pages use wrangler CLI. - But when I visit the website, I still see the text “TestingA” in the home page, even I check the response on the network tab: it show text “TestingB” (as I expected) in the index.html Can you explain why I observed this situation? You can see clearly in the image below: So I change the text from “Find in-depth information about Next.js features and API.” to “Thanh Le 95”. In the response of network tab, it shows correctly but when it rendered to the home page, it is still show the original one. Why is this happening?
thanhle
thanhle•8mo ago
No description
Want results from more Discord servers?
Add your server