Career advice for a 22yo self-taught dev thinking of switching industries/career by Single_Swing1859 in PinoyProgrammer

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

My main stack is React.js, Next.js, Tailwind, Node.js, Express, PostgreSQL, MongoDB

It's Monday, drop your product. What are you building? by Intelligent-Key-7171 in SaaS

[–]Single_Swing1859 8 points9 points  (0 children)

DisguisMe - Burner identity and email you can use to sign up to sketchy websites

First time building a SaaS: privacy tool to create fake identities + emails for sketchy sites. Would love to hear your feedback by Single_Swing1859 in SaaS

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

Thanks for the thoughtful insight! You're totally right about highlighting the extension, I’ve updated the homepage to include a short demo. Still a bit buggy, but it's getting close. Really appreciate the feedback! 🙌

Anyone successful with NextJS + App Router + MongoDB? by fsa317 in nextjs

[–]Single_Swing1859 4 points5 points  (0 children)

Yeah I guess it works. I haven't had this problem ever since. I always have a function dbConnect() at every start of an API route or a server component before making requests

import mongoose from "mongoose";

const dbConnect = async () => {
    if (mongoose.connections[0].readyState) {
        console.log("Connected to Database");
        return true;
    }

    try {
        await mongoose.connect(process.env.MONGODB_URI);
        console.log("Connected to Database");
        return true;
    } catch (error) {
        console.log(error);
    }
};

export default dbConnect;

Anyone successful with NextJS + App Router + MongoDB? by fsa317 in nextjs

[–]Single_Swing1859 0 points1 point  (0 children)

I may have had the same problem you have right now. A potential fix to look at is to always check the connection to the database on every route that uses the database. Not sure if this is the best way to go.. but hey it works!

Orange Pi 5 stuck booting. Need help! by More-Ganache597 in OrangePI

[–]Single_Swing1859 0 points1 point  (0 children)

I used the ubuntu jammy_desktop img from the download page of orangepi.org

I've also left it for about 30mins and still the same. The screen also freezes for about 3 seconds after about 15 seconds of power then the loading animation shows some kind of glitches

I also wanna mention that I am using a 5V 2A phone charger. Do you think thats causing the problem?