Search
 
SCRIPT & CODE EXAMPLE
 

TYPESCRIPT

.env.local is not working inside useEffect

.env.local doesn't work in client side so you need to add env:{} in nextjs.config.js

module.exports = {
  reactStrictMode: true,
  env: {
    BASE_URL: process.env.BASE_URL,
    NODEMAILER_EMAIL: process.env.NODEMAILER_EMAIL,
    NODEMAILER_PASSWORD: process.env.NODEMAILER_PASSWORD,
    SENDGRID_API_KEY: process.env.SENDGRID_API_KEY,
    ig_user_access_token: process.env.ig_user_access_token,
  },

  images: {
    domains: ['sirocco.se', 'instagram.fcgp27-1.fna.fbcdn.net'],
  },
};
Comment

PREVIOUS NEXT
Code Example
Typescript :: Simple code example of adding two numbers in typescript 
Typescript :: does casting have a higher precedence than dots java 
Typescript :: python double check if wants to execute funtion 
Typescript :: kotlin version that is used for building with gradle 
Typescript :: game object attributes 
Typescript :: how to find the total of the products added to the shopping cart in java program 
Typescript :: how to use typescript map 
Typescript :: how-to-pass-data-between-middleware 
Typescript :: no database host was found that meets the requirements for this server. 
Typescript :: nextjs waiting for compiling problem 
Typescript :: typeorm versioncolumn 
Typescript :: Pick<Pick<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement, HTMLDivElement 
Typescript :: how to create total possible sub sets of a list python 
Typescript :: No query results for model 
Typescript :: when to test analysis 
Typescript :: google clear list of accounts from chrome 
Typescript :: material ui tab link external 
Typescript :: typescript interface array of dictionaries 
Typescript :: how to validate if all characters enetred in a string are alphabets and then reprompt user 
Typescript :: nativescript display image from web 
Typescript :: acces arrey lements without comma 
Typescript :: python arbitrary arguments *args mcqs 
Typescript :: Discuss climate changes during the Tertiary and Quaternary Periods, and the effects of these changes on geology and vegetation. 
Typescript :: typescript make every property of an object nullable 
Typescript :: ngbcollapse error with Reactive Forms 
Typescript :: flights starting from in india 
Typescript :: middleware in endpoint controller routing-controllers 
Typescript :: matplotlib eats all memory when saving fig 
Typescript :: how to pass node arguments in nextjs 
Typescript :: vestacp ports mysql 
ADD CONTENT
Topic
Content
Source link
Name
1+1 =