Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

294
Views
next.config.js images domains problem with env

I have a problem with the next.config.js images domains.

Here is the next.config.js

module.exports = {
 reactStrictMode: true,

 env: {
  CLIENT_LOCAL_API_URL: '/api',
  CLIENT_API_URL: '/api'
 }, 
 serverRuntimeConfig: {
  SERVER_API_URL: process.env.SERVER_API_URL
 },
 images: {
  domains: [process.env.IMAGE_DOMAIN],
 },
}

Here is the .env file

SERVER_API_URL = api-url
IMAGE_DOMAIN = img-domain

I can't run the app. I get this error after npm run dev:

Specified images.domains should be an Array of strings received invalid values ()

I don't get it where I am doing wrong

Thanks in advance

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

I fixed it. The env file name was .env.example. I changed to .env.local

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!