netlify-templates / kpop-stack

Create a Remix app with Netlify, Tailwind, TypeScript and more!

Home Page:https://kpop-stack.netlify.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improve DX for local development

nickytonline opened this issue · comments

Description

Currently, with the Netlify template, we're always running netlify dev during development. This works and the Remix app runs in Netlify functions, but when a developer makes changes there is no hot reloading. They are required to do a browser refresh of the page to see the changes they made.

I discussed this internally as this causes confusion for developers that come to expect hot reloading. The proposed change will be to change the npm dev script to run remix dev so that a developer can build their app and get all the hot reloading goodness that the Remix dev server provides.

When they want to test the serverless version, they can run netlify dev with the above mentioned caveat about hot reloading.

Related discussion for the Netlify Remix template, remix-run/remix#3753