Skip to content
This repository was archived by the owner on Jun 11, 2022. It is now read-only.
This repository was archived by the owner on Jun 11, 2022. It is now read-only.

PUBLIC_URL env not updated from staging to production #161

Open
@marinav

Description

@marinav

Hello,

Thank you for your work ! I'm using your buildpack and it works very well but I have a question.

I am trying to serve my assets from a CDN, so I created two CDN, one for my staging app an another one for my production app. I put the CDN's url in the PUBLIC_URL env var and it works fine in staging. Indeed PUBLIC_URL is set at build time. Unfortunately, when my app is “promoted” to production (I am using heroku's pipeline) PUBLIC_URL keeps staging's url.

I tried to rename the env var to REACT_APP_PUBLIC_URL but it doesn't work better.

Do you have an idea to make it works without rebuild the app for production ?

Thank you !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions