netlify-remix-test

Stars
0

Welcome to Remix!

Netlify Dev Setup

First you'll need the Netlify CLI:

npm i -g netlify-cli

Development

You will be running two processes during development when using Netlify as your server.

  • Your Netlify server in one
  • The Remix development server in another
# in one tab
$ netlify dev

# in another
$ npm run dev

Open up http://localhost:3000 and you should be ready to go!

If you'd rather run everything in a single tab, you can look at concurrently or similar tools to run both processes in one tab.

Deploying

You will need to add your REMIX_TOKEN to your Netlify site's build and deploy settings:

Once that's done you can deploy!

$ npm run build
# preview deployment
$ netlify deploy

# production deployment
$ netlify deploy --prod