Skip to content

Move away from ecstatic for serving the built folder #59

Closed
@bahmutov

Description

@bahmutov

In https://github.com/cypress-io/netlify-plugin-cypress/blob/master/src/index.js#L9

function serveFolder (folder, port) {
  const server = ecstatic({
    root: folder
  })
  return http.createServer(server).listen(port)
}

The ecstatic server is deprecated jfhbrook/node-ecstatic#259

It would also be nice if the server had an option to redirect unknown URLs to / to have an option to handle client-side routing as a fallback (#57, #51)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions