I’m going to get the of a gatsby pro on this - we will have a chance to talk to them next week, i believe - and we can circle back with you here when we know more. thanks for your patience.
hi @proton , i spoke to our most knowledgeable dev and we brainstormed the following - you could try doing something like this:
setting
GATSBY_DEPLOY_URL=${DEPLOY_URL} gatsby build as your build command MIGHT do what you are hoping to - injected the deploy url into that environment variable so you can re-use it as you wish.
this is untested code, so, i have no guarantees it will work, but it is something to try! If this doesn’t work, we might be out of ideas, but do let us know.