nextjs adding space to url templates in docker build
Unanswered
Transvaal lion posted this in #help-forum
Transvaal lionOP
Hey folks!
We're experiencing a docker-specific build issue with next.js where spaces are being injected into URL path segments/templates, causing API route failures.
Does anyone have an idea what could be wrong here? Here is more about the issue https://github.com/jk-labs-inc/jokerace/issues/4229
We're experiencing a docker-specific build issue with next.js where spaces are being injected into URL path segments/templates, causing API route failures.
Does anyone have an idea what could be wrong here? Here is more about the issue https://github.com/jk-labs-inc/jokerace/issues/4229
5 Replies
Transvaal lionOP
bump, anyone?
Roseate Spoonbill
If I were to guess, one of the env variables during build have thespace added by mistake in workflow itself. I've done ton of builds in docker image, pipeline itself and live on servers and any cases like those were simply my dumb mistake of placing spaces in wrong places.
I'd look for places like this one and make sure these aren't evaluated with extra spaces:
I'd look for places like this one and make sure these aren't evaluated with extra spaces:
(this is example taken from the code you referred to as breaking PR)
Note the spaces before
$
. I am not saying this is the source of problem, but definitely worth looking at.