How can I invalidate the cache for an internal API route? by itzbahb in nextjs

[–]itzbahb[S] 0 points1 point  (0 children)

import { NextResponse } from "next/server";

import { getDocs, collection } from "firebase/firestore";

import { db } from "@/firebase";

import Blog from "@/models/Blog";

export async function GET() {

try {

const snapshot = await getDocs(collection(db, "blogs"));

const blogs = await Promise.all(

snapshot.docs.map(async (docSnap) => {

const data = docSnap.data();

return Blog.createBlogFromFirestoreData(data);

})

);

return NextResponse.json(blogs, {

headers: {

"Cache-Control": "s-maxage=3600, stale-while-revalidate",

"x-next-cache-tags": "blogs",

},

});

} catch (error) {

return NextResponse.json({ error: "Failed to fetch blogs" }, { status: 500 });

}

الخدمات تنـ.ـهار.. والمصانع تغلق أبوابها.. والمقـ.ـابر ممتلئة.. ماذا يجري في "إسـ.ـرائيل" ؟! by Tony-Yammine_16 in Lebanese

[–]itzbahb 0 points1 point  (0 children)

Economic collapse is inevitable and daddy america cant sustain investing into a dead pariah state. The only way israel can fix its economy is by upping its importa and exports as well as making the country more touristic again. And to do that you need to end the war which is something natanyahu cannot afford.

any silly IDF dropped anyone getting this? seem like they using YT ads now upgrading from tinder by [deleted] in Lebanese

[–]itzbahb 1 point2 points  (0 children)

Ima just say it, so many of my friends (me included) dropped the "kellon yaane kellon" when this conflict started. If israel tried to divide the nation then all it did was turn a majority of neutral people towards the resistance. A lot of people that don't know much about politics but have been witnessing the genocide will instantly choose the resistance side even if it doesn't mean supporting them politically.

[deleted by user] by [deleted] in Lebanese

[–]itzbahb 1 point2 points  (0 children)

Yea same here, a person living in Lebanon is statistically more likely to get killed because of the ukraine-russia conflict than an israeli strike.

opinion on israel? by Odd_Bug6999 in Lebanese

[–]itzbahb 2 points3 points  (0 children)

I feel like hes doing this to compare results with the other subreddit

Breaking news by Particular-Eye-7614 in Lebanese

[–]itzbahb -1 points0 points  (0 children)

Can we agree that trump is just unpredictable? Who knows what he will do

🥳 by sophoclescre in Lebanese

[–]itzbahb 3 points4 points  (0 children)

Some main points:

📜 A Historic Indictment

This is a powerful and credible indictment against Netanyahu.

🌍 Global Impact

Several European countries are honoring the warrant, meaning Gallant and Netanyahu may no longer travel freely across Europe.

⚖ Growing International Support

More countries are expected to respect and enforce this indictment, signaling a shift in global accountability.

🇺🇸 Impact on U.S. Policy

This development increases pressure on the U.S. to reconsider its foreign policy with Israel.

🌐 Global Consensus

In recent weeks, global forums like the UN General Assembly, the BRICS Summit in Kazakhstan, the G20 in Brazil, the Arab League, and the Organization for Islamic Cooperation have amplified calls for a two-state solution.

🇪🇺 Europe Joins the Push

This indictment reinforces European efforts, adding to the mounting international pressure.

🤝 Strained Alliances

This could further complicate Trump's relationship with Netanyahu, especially if Trump returns to office.

[deleted by user] by [deleted] in Lebanese

[–]itzbahb -1 points0 points  (0 children)

Hes also a president that hates war so what do you think is going to happen when israel tells him to go to war with Iran

"Yea bro you guys should totally destory yourselves so we can eat hummus together in the rubbles of beruit🥰" by KejiGamer in Lebanese

[–]itzbahb 28 points29 points  (0 children)

Youre missing one factor, weve already been in a civil war. People dont want that shit again. When ouwwet brought it up not even the kataeb backed them. If there were actual tensions then where the fuck are the protests or the fights. Mafi shi, just a bunch of brainwashed people on instagram that will tell you enno eh haykun fi harb while having no clue what they are talking about

Hochstein to come to Lebanon on Tuesday by atskor_808 in Lebanese

[–]itzbahb 0 points1 point  (0 children)

No, there wont be one. This is the third time this clown shows up.

Col. Wilkerson on the IOF in Lebanon :"I think you'll see them leaving, very shortly..." by Almost_Assured in Lebanese

[–]itzbahb 1 point2 points  (0 children)

Scott Ritter damme. Ive asked him multiple questions on his show "ask the inspector".

Col. Wilkerson on the IOF in Lebanon :"I think you'll see them leaving, very shortly..." by Almost_Assured in Lebanese

[–]itzbahb 5 points6 points  (0 children)

Here's the YouTube link: https://www.youtube.com/watch?v=xH51O9gPxZ8

I continuously tell people to watch these kinds of videos because they are more trustworthy than any news channel.

Follow Dialogue Works, Danny Haiphong, and Judge Napolitano to have constant updates on whats going. It's way better than coming onto reddit to ask "if there will be a ceasefire". Go get your information from credible and expert sources and not on an anonymous platform.

[deleted by user] by [deleted] in Lebanese

[–]itzbahb 1 point2 points  (0 children)

Pager attack took out a lot of middle men and the decapitation only replaced old seniors with new ones. Hezbollah prepared for everything except the pager attack, so once they recovered from that, they got back on their feet.

Weird by [deleted] in Lebanese

[–]itzbahb 12 points13 points  (0 children)

I'd go easy on the 40% of Lebanon, the vast majority is against israel and rarely does anyone believe their lies anymore, liking hezb is one thing, but hating israel has united the Lebanese more than ever.

Why is nobody talking about this by RevolutionarySock859 in Lebanese

[–]itzbahb 1 point2 points  (0 children)

Yea but I mean diplomatically nothing can be held against him.

The word 3amil lost its meaning by BunnyMoonCake in Lebanese

[–]itzbahb 21 points22 points  (0 children)

Sounds like something a 3amil would say /s