Skip to content

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

@rodrigobutta

Description

@rodrigobutta

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions