payloadcms / payloadcms/website

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

Open
#417 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
634
Forks
195
Avg merge
11h 43m
Merged PRs (30d)
17

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Check nextjs.config.js and the .env.example file first. Add the missing BLOB_STORE_ID example value, then run yarn dev to confirm the invalid next.config.js options error no longer occurs.

Written by the indexing model from the issue text.

Assessment

Tech stack
nextjs, typescript
Domain
web-dev
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.