- Install the Netlify CLI:
npm i -g netlify-cli
If you have previously installed the Netlify CLI, you should update it to the latest version:
npm i -g netlify-cli@latest
- Sign up and log in to Netlify:
netlify login
- Create a new site:
netlify init
Instaleu les dependencies
npm install
Per obrir en localhost:
npm run dev
Open up http://localhost:3000, and you should be ready to go!
The Netlify CLI builds a production version of your Remix App Server and splits it into Netlify Functions that run locally. This includes any custom Netlify functions you've developed. The Netlify CLI runs all of this in its development mode.
netlify dev
Open up http://localhost:3000, and you should be ready to go!
Note: When running the Netlify CLI, file changes will rebuild assets, but you will not see the changes to the page you are on unless you do a browser refresh of the page. Due to how the Netlify CLI builds the Remix App Server, it does not support hot module reloading.
Deployment is done by github, when pushing changes to test-dev, it builds the project in https://test-dev--housh.netlify.app/. When pushing to main, it deploys to: https://housh.netlify.app/