Next.js Discord

Discord Forum

NextJS API .includes() does not work?

Unanswered
Whiteleg shrimp posted this in #help-forum
Open in Discord
Avatar
Whiteleg shrimpOP
i have a req.headers.host that i want to check if it includes the word "apple". It will not work. It works locally, but when i publish it to vercel. It will throw false, even though console.log(req.headers.host) === "apple.com" ?. Any fixes or insights?

0 Replies