Skip to content

Serve build output using Netlify CLI in postBuild stage #146

Closed
@alexjfno1

Description

@alexjfno1

Describe the solution you'd like
We'd like to run the Cypress tests on post build so that we can ensure the files are built correctly. We have recently added some headers in the _headers file that we'd like to test using cypress. This means that we need to serve the build output using npx netlify dev. I can see a way to do this in the preBuild step but not on postBuild.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions