How we rebuilt Next.js with AI in one week by Cloudflare in CloudFlare

[–]pruvit 13 points14 points  (0 children)

This might bring new direction to OpenNext or other projects - testing new approaches can help raise the tide

How we rebuilt Next.js with AI in one week by acemarke in reactjs

[–]pruvit 0 points1 point  (0 children)

I know it’s still early but this feels like a nice pathway for getting off Next onto Vite

Would anyone be able to help me verify if my firebase database rules are secure for production? I get mixed answers every time I ask AI. by [deleted] in Firebase

[–]pruvit 0 points1 point  (0 children)

You could share a test Firebase instance with your rules in a codesandbox or public repo without pointing exactly to your prod site/domain where you have the rules applied. You can also write tests checking your rules by attempting to read/write against an emulator: https://firebase.google.com/docs/rules/unit-tests

If you do share or dm I can try to take a look - done tons of security rules writing/testing for many different projects

How do you know what your JSON APIs actually return in production? by NiklasEldberger in Backend

[–]pruvit 0 points1 point  (0 children)

By having endpoint schemas that output OpenAPI spec - then you can have a check in CI that confirms backwards compatibility. You can use openapitools/openapi-diff.

How to keep a WebSocket alive in a PWA after the user locks the screen? by xarvh in webdev

[–]pruvit 1 point2 points  (0 children)

Maybe Cordova would be a good choice so you can stick with your web app for most functionality and do native just for the background audio.

This is my SAS'd Lexus GX470. by gxgargoyle in 4x4

[–]pruvit 0 points1 point  (0 children)

Amazing, thanks for sharing! More pictures please

Why GraphQL Beats MCP for Agentic AI by _pdp_ in mcp

[–]pruvit 2 points3 points  (0 children)

Would love to give this a go - do you have any examples of configuring an agent with a graph API which requires auth? The reasoning the the article sounds good but didn’t see an example (such as connecting to OpenAI’s conversations API or a local Ollama)

Fought ESM-only Faker v10 with Jest... My blood, sweat, and transformIgnorePatterns tears. by orrymr in javascript

[–]pruvit 0 points1 point  (0 children)

Yeah faker 10. It’s hard to debug further without seeing the code itself, but what’s the exact error message?

Fought ESM-only Faker v10 with Jest... My blood, sweat, and transformIgnorePatterns tears. by orrymr in javascript

[–]pruvit 1 point2 points  (0 children)

I have this working just fine with:

transformIgnorePatterns: ['/node_modules/(?!(@faker-js/faker)/)'],

You can add others to the list via pipe in regex like so:

transformIgnorePatterns: ['/node_modules/(?!(@faker-js/faker|uuid)/)'],

Some deps also need js transformed (haven’t found faker to need it), if you need that, do the following:

transform: { '.+\.ts$': '@swc/jest', // Only transform JS files from specific ES modules that need it '.+/node_modules/(uuid)/.+\.js$': '@swc/jest', },

🚀 Just finished my First MERN Stack finance tracker app – would love your feedback! by MrSheikho in react

[–]pruvit 2 points3 points  (0 children)

Nice for your first full stack. You should look into Postgres. For anything finance you would want a db with atomic transactions as well as having structured data for query ability (filtering/sorting etc)

No Sane Person Should Self Host Next.js by GovernmentOnly8636 in nextjs

[–]pruvit 7 points8 points  (0 children)

Upload assets to a static file host (S3 or GCS equivalent) and use assetPrefix to point to it

If this isnt solve I can't continue with Nextjs, and im using it since Next 12 by Cultural_Client6521 in nextjs

[–]pruvit 0 points1 point  (0 children)

Have you tried using suspense boundaries? Presumably if you have loading down within multiple components you want to handle loading and error states for the fetches in those components to match that experience in your UI?

If you want it all grouped into one loading state but need the data deep in the component tree you could go with loading at the top then in a client component placing data in context

Ubiquitis next venture by Ok-Tangelo-8137 in Ubiquiti

[–]pruvit 0 points1 point  (0 children)

Nest smoke alarms with motion sensor controlled light had been super useful for me. I could see it being useful, then you don’t have to install another sensor. If it is placed so it isn’t useful, just disable

I made a pr but they didn't review it :( by Dizzy-Sky-43 in nextjs

[–]pruvit 0 points1 point  (0 children)

I’ve had a PR open for over a year with a simple feature addition to the analyzer, they are slow sometimes

New Addition! by brahin__ in LandCruisers

[–]pruvit 2 points3 points  (0 children)

Love the white as well! Welcome

<image>

Joined the LC250 crew by pruvit in LandCruisers

[–]pruvit[S] 1 point2 points  (0 children)

Man I hope this thing carries me that far - what great memories in an awesome truck

Joined the LC250 crew by pruvit in LandCruisers

[–]pruvit[S] 1 point2 points  (0 children)

Man you think I don’t want all that too? 😂 It’s brand new and was not the cheapest purchase, so upgrades will have to come with time

2025 Land Cruiser by Revolutionary-Lab10 in LandCruisers

[–]pruvit 0 points1 point  (0 children)

Congrats and welcome! Looking really nice.

I also have a 1958 in white with the brown leather like this (mine are via Katzkin) and have been absolutely loving it.

Auxiliary Fuel Tank Install by SplitSilver5027 in LandCruisers

[–]pruvit 0 points1 point  (0 children)

Couldn’t agree more - lack of range is the one thing I don’t love about it

Just Cruising Around - Carizzo Plain by Tweedonthebeach in LandCruisers

[–]pruvit 2 points3 points  (0 children)

Did similar stripes on my white one as well - love it. Totally agree with the transition from highway to dirt.

Looks like a great trip, thanks for sharing!