Skip to content

Discussion: Building for static deployments #46

@paulirish

Description

@paulirish

Static deployments on now come with some benefits, namely, that the instances are never put to sleep and dont count against your instances limit.

In my personal uses of stage-ci, I mostly just want static assets hosted. I don't have a custom webserver I need stood up. I'm thinking we could make this easier to pull off when using stage-ci.

Proposal:

If your package.json has an npm script named stage-build_static, stage-ci will run it and expect that it creates a new folder named _static which contains an index.html and all the assets. stage-ci will then have now deploy that _static folder.


Obviously we're relying on two naming conventions here, but since now-start and now-build are a thing, it seems reasonable. I'm totally open to names being different, or another approach entirely. Thoughts?

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