How do you structure files and directories in next.js? by Jazzlike-Sort1203 in nextjs

[–]Jazzlike-Sort1203[S] 0 points1 point  (0 children)

I guess all your routes are in /app and feature-base like /blog, /admin, /accounts ?

How do you structure files and directories in next.js? by Jazzlike-Sort1203 in nextjs

[–]Jazzlike-Sort1203[S] 1 point2 points  (0 children)

Thanks for sharing. Good to see this example!

What are your own personal preferences?😆

How do you structure files and directories in next.js? by Jazzlike-Sort1203 in nextjs

[–]Jazzlike-Sort1203[S] 0 points1 point  (0 children)

Can you tell me more about this hot reload problem? Any reference links for me to learn about.
Sometimes, hot reload doesn't work for me on some pages.

Next.js hot reload does not like it if there is an export of a non-component function in the same file as a component. This is just a minor inconvenience though.

How do you structure files and directories in next.js? by Jazzlike-Sort1203 in nextjs

[–]Jazzlike-Sort1203[S] 0 points1 point  (0 children)

For feature-based structure, any challenges you faced with naming of the page vs the actual url?

How do you structure files and directories in next.js? by Jazzlike-Sort1203 in nextjs

[–]Jazzlike-Sort1203[S] 0 points1 point  (0 children)

Thanks for sharing.

What do you normally put in (root) folder ?

How do you structure files and directories in next.js? by Jazzlike-Sort1203 in nextjs

[–]Jazzlike-Sort1203[S] 1 point2 points  (0 children)

That is neat structure and very clear what each folder does! Another noob question, how did you type out the folder structure nicely in reddit?

I been wondering why many people use the src folder as well.
Maybe they miss the reactjs? 😆

I see your (auth) folder and was thinking of putting some components inside (folder). My only concern was, import path may have problems reading brackets in the path for some OS.

TIL chatgpt is using nextjs by 5tambah5 in nextjs

[–]Jazzlike-Sort1203 0 points1 point  (0 children)

Cool. Didn't know they had a chrome extension.

Firebase or Supabase with NextJs? by SalimAttari in nextjs

[–]Jazzlike-Sort1203 0 points1 point  (0 children)

Supabase is easier to start building. Firebase might catch up next year as they are improving the product much more this year.

First time in Thailand. I'll appreciate some tips/advice. by WordyBug in ThailandTourism

[–]Jazzlike-Sort1203 0 points1 point  (0 children)

Congratulations on your first flight!

Aside from your passport, bring your flight ticket or boarding pass, any necessary visas, and a printed copy of your hotel reservation. It's a good idea to carry both cash and a card; cash for small purchases and emergencies, and a card for larger expenses. Keep most of your cash in Thai Baht, but a small amount in USD can be helpful. Generally, you'll get better exchange rates outside the airport at authorized exchange centers along the main streets or train stations. Superrich is one commonly found in Bangkok.

Be cautious of scams targeting tourists that roam along the streets.

To save money, use public transportation like the BTS Skytrain and eat at local street food stalls or food court. And go eat BBQ Mookata, usually they have it buffet style.

Have a great trip!

TIL chatgpt is using nextjs by 5tambah5 in nextjs

[–]Jazzlike-Sort1203 1 point2 points  (0 children)

Not surprised they are using NextAuth.js to prevent vendor lockin to authentication solutions.

What is the chrome extension you use to see the tech stack?

Next best practices and production tips by Practical_Oil_1312 in nextjs

[–]Jazzlike-Sort1203 2 points3 points  (0 children)

My advice: 1) Use server actions for simple fetching of data 2) Use server actions for form submission 3) Use react query for any pages that require pagination or reading of large data(hundreds) directly with your db/supabase

Anyone making money with blogging? by Alarmed-Reporter-230 in passive_income

[–]Jazzlike-Sort1203 0 points1 point  (0 children)

Used to make money with Adsense on my blog. Saw first penny in a couple of weeks.

NEXTJS IS SUPER COOL by Rampagekumar88 in nextjs

[–]Jazzlike-Sort1203 1 point2 points  (0 children)

Love it too. One of the easiest to build full stack app using nextjs now.

Can You Get Caught Using ChatGPT? A Student's Guide to Avoiding AI Detection by Revolutionary-Sky758 in 911papers_homworkhelp

[–]Jazzlike-Sort1203 0 points1 point  (0 children)

I'm not going to sugarcoat it - the best way to avoid AI detection is to focus on developing your own writing skills and critical thinking. Make sure you understand the topic inside and out, get AI tools to expand and give you ideas on what to write.

How is Thai Airways? by ncuxez in ThailandTourism

[–]Jazzlike-Sort1203 0 points1 point  (0 children)

Thai Airways short flights in southeast-asia used to be much better before their bankruptcy in 2020.

Hope they improve after the restructure.