Relative Content

Tag Archive for next.jsnext.js14

How to read environment variables server-side in NextJS

Using NextJS v14 with the app router paradigm. I have tried two different high-level approaches to reading environment variables in server-side code, and neither worked. How can I achieve this without exposing the environment variable values client-side?

How to read environment variables server-side in NextJS

Using NextJS v14 with the app router paradigm. I have tried two different high-level approaches to reading environment variables in server-side code, and neither worked. How can I achieve this without exposing the environment variable values client-side?

How to read environment variables server-side in NextJS

Using NextJS v14 with the app router paradigm. I have tried two different high-level approaches to reading environment variables in server-side code, and neither worked. How can I achieve this without exposing the environment variable values client-side?

How to read environment variables server-side in NextJS

Using NextJS v14 with the app router paradigm. I have tried two different high-level approaches to reading environment variables in server-side code, and neither worked. How can I achieve this without exposing the environment variable values client-side?

How to read environment variables server-side in NextJS

Using NextJS v14 with the app router paradigm. I have tried two different high-level approaches to reading environment variables in server-side code, and neither worked. How can I achieve this without exposing the environment variable values client-side?

How to read environment variables server-side in NextJS

Using NextJS v14 with the app router paradigm. I have tried two different high-level approaches to reading environment variables in server-side code, and neither worked. How can I achieve this without exposing the environment variable values client-side?

Can I create an alias for the name of a route?

I’m building a Next.js 14 app with content in portuguese and english. I’m naming the folders of the routes in english (for example: about, contacts, etc).
I’d like to create route name alias for portuguese. This way, opening website.com/about would go to the page as website.com/sobre.

Excluding pages from layout.tsx in NextJS 14.2.11

found.tsx file and I’m trying to remove my Header and Footer that are inside the Layout.tsx file. Now I know that the not found page needs to be in the app root folder but I wasn’t able to find anything helpful.

Excluding pages from layout.tsx in NextJS 14.2.11

found.tsx file and I’m trying to remove my Header and Footer that are inside the Layout.tsx file. Now I know that the not found page needs to be in the app root folder but I wasn’t able to find anything helpful.