Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup missing required ENV [Solved but needs update or PR] #417

Open
rodrigobutta opened this issue Jan 6, 2025 · 0 comments
Open

Setup missing required ENV [Solved but needs update or PR] #417

rodrigobutta opened this issue Jan 6, 2025 · 0 comments

Comments

@rodrigobutta
Copy link

rodrigobutta commented Jan 6, 2025

Hi!

[SOLVED BUT NEEDS A TINY CHANGE]

When installing from scratch, since the nextjs.config.js is adding an item that requires the BLOB_STORE_ID:

 {
    protocol: 'https',
    hostname: process.env.BLOB_STORE_ID,
  },

That ENV since to be present in the env.example.

Just adding any value to that will solve the problem, otherwise, running yarn dev will return in an error:

Invalid next.config.js options detected:
    "images.remotePatterns[11].hostname" is missing, expected string
See more info here: https://nextjs.org/docs/messages/invalid-next-config
error Command failed with exit code 1.

Solution (unless scaping that empty string in the config):

in .env (so from .env.example):

BLOB_STORE_ID=1234567890
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant