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

yarn dev failed with exit code 1. Invalid headers found #136

Open
kudarukuni opened this issue Nov 30, 2022 · 3 comments
Open

yarn dev failed with exit code 1. Invalid headers found #136

kudarukuni opened this issue Nov 30, 2022 · 3 comments

Comments

@kudarukuni
Copy link

value in header item must be string for route {"source":"/blog/:slug*","headers":[{"key":"x-forwarded-proto","value":"https"},{"key":"x-forwarded-host"},{"key":"host"}]}

value in header item must be string for route {"source":"/explore/:slug*","headers":[{"key":"x-forwarded-proto","value":"https"},{"key":"x-forwarded-host"},{"key":"host"}]}

@MarcusWentz
Copy link

MarcusWentz commented Jan 29, 2023

I have the same issue with:

npm run dev

Any updates on how to fix this?

@MarcusWentz
Copy link

It looks like an

.env 

file is missing since there are many environmental variables referenced that are not defined.

Thank you @johannafransn for finding this.

@johannafransn
Copy link

And the current .env-sample file does not include many of the next.config.js variables that are referenced in the headers. Sample env file should be updated to reflect all variables 👍

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

3 participants