netlify / netlifyctl

MIT License
176 stars 34 forks source link

`netlifyctl dev` local testing server #94

Closed ghost closed 6 years ago

ghost commented 6 years ago

There are some great Netlify-unique features that can significantly change the operation of a site, but which currently can't easily be tested on a local development machine-- particularly _headers, _redirects, and netlify.toml.

I made a little dev server for my own use which reads these files and reproduces the Netlify production behavior, and I feel like an open source version of this could be useful for others. Is this something that would make sense as a feature pull request to the Netlify CLI? Or should I release it as a standalone tool? (Or maybe this already exists and I just haven't come across it :D)

rybit commented 6 years ago

we would love to integrate a dev server into this, we are working to get the underlying engine to be a component that we can ship easily, but it is a bit out. I'd say, for the time being, I'd release your own and I can let you know as we release a more official capability.

ghost commented 6 years ago

Makes sense, thanks! :D

chris-pardy commented 5 years ago

@mispy if you've released your dev server could you include a link here? If not it's something I'll likely start trying to put together this week.

ghost commented 5 years ago

Alas, I didn't get around to it! Would be an awesome thing to have though. You can see the hacky ad hoc one I was using here https://github.com/owid/owid-grapher/blob/eaa6e5172742aac93b66061d20823018a2efb766/src/admin/devServer.tsx

bcomnes commented 5 years ago

Thank you @mispy very cool

raphaelschaad commented 5 years ago

@rybit Is it on the roadmap?