MK-IT / gatsby-theme-password-protect

5 stars 5 forks source link

The root element is not removed on production #1

Open SMerdzhanov opened 3 years ago

SMerdzhanov commented 3 years ago

Originally submitted on GitLab by Arn van der Pluijm @avdp.

URL to the complete discussion - https://gitlab.com/mkit/open-source/gatsby-theme-password-protect/-/issues/2

Hi,

On a production build the root element container is not removed, on a development build it works perfectly. I am trying to find out why, maybe someone has an idea?

gatsby develop works gatsby build && gatsby serve does show the password screen, after providing the password the root element stays. So there is a container with height: 100vh; background: #424242; display: flex; flex-direction: column; justify-content: center; align-items: center;

Any ideas? caching or something like that?

Thanks!

BoyanZhelev commented 3 years ago

Pull Request: https://github.com/MK-IT/gatsby-theme-password-protect/pull/15

gustavomm19 commented 1 year ago

Have anyone found the solution to this?