You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you can see the asset url http://0.0.0.0:8055/apiassets/fa38e044-7051-478f-bb3e-60a9203cad49 has a missing / after api.
The issue may come come from gatsby-node.js line 91: const fileUrl = ${plugin.url}assets/${file.id};
There you see the missing /.
Even if add the / to the options.url value in my gatsby-config.ts (like localhost/api/), the trailing slash gets replaced by line 171 in the gatsby-node.js: const basePath = baseUrl.pathname.endsWith('/') ? baseUrl.pathname.slice(0, -1) : baseUrl.pathname;
Im not sure if im doing anything wrong since im curious about the fact that im the first reporting this.
That's my first github issue ever, so be patient with me :)
Upon running
gatsby build
i get the following console error, right aftersuccess createSchemaCustomization - 0.995s
:As you can see the asset url
http://0.0.0.0:8055/apiassets/fa38e044-7051-478f-bb3e-60a9203cad49
has a missing/
afterapi
.The issue may come come from
gatsby-node.js
line91
:const fileUrl = ${plugin.url}assets/${file.id};
There you see the missing
/
.Even if add the
/
to theoptions.url
value in mygatsby-config.ts
(likelocalhost/api/
), the trailing slash gets replaced by line171
in thegatsby-node.js
:const basePath = baseUrl.pathname.endsWith('/') ? baseUrl.pathname.slice(0, -1) : baseUrl.pathname;
Im not sure if im doing anything wrong since im curious about the fact that im the first reporting this.
dependencies
node
v19.9.0
Thanks for your help guys :) greets from germany <3
The text was updated successfully, but these errors were encountered: