Skip to content

Wait to delete build folder until finished building #634

Closed
@zackify

Description

@zackify

If you serve the build folder using nginx, when building the app on a deploy, there's anywhere from a few seconds to a minute or two where nginx will return a 403, because the build is deleted before it is finished. See this conversation for more: https://twitter.com/Vjeux/status/775410547470716929

Basically, my solution is to wait until a build finishes, or is a few miliseconds from finishing when running npm run build

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions