CLient side env finder using prefix NEXT_PUBLIC_ not working as expected #66246
-
|
I have the log properly in server side but the env is not accessible in the browser! // clientsideutils.ts import { fetchToken } from './fetchToken_backend' export async function envFinderClient(FOUND_ENV: string): Promise { //#region Barrel Events & Reasons Storage export async function getBarrel_EventReasons() { } catch (error) { // layout.tsx export default function DashBoardLayout({ return ( |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Read the docs https://nextjs.org/docs/app/building-your-application/configuring/environment-variables Pay attention to Note that dynamic lookups will not be inlined, such as: |
Beta Was this translation helpful? Give feedback.
-
|
@wwwdepot thanks |
Beta Was this translation helpful? Give feedback.
Read the docs https://nextjs.org/docs/app/building-your-application/configuring/environment-variables
Pay attention to Note that dynamic lookups will not be inlined, such as: