payloadcms / payloadcms/website
Setup missing required ENV [Solved but needs update or PR]
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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