An open API service indexing awesome lists of open source software.

https://github.com/netlify/remix-template

Deploy your Remix site to Netlify
https://github.com/netlify/remix-template

edge-functions netlify remix remix-run serverless-functions

Last synced: 5 days ago
JSON representation

Deploy your Remix site to Netlify

Awesome Lists containing this project

README

        

# Netlify Remix Template

Welcome to the Netlify Remix Template project. If you were expecting this to be your site, run `remix init` in the root of this project to get started.

To use the template, run

```bash
npx create-remix@latest --template netlify/remix-template
```

This project includes:

- Netlify Functions template for Remix sites
- Netlify Edge Functions template for Remix sites

From the `create-remix` command, you may pass `--netlify-edge` or `--no-netlify-edge` to generate a template that uses Netlify Edge or Serverless functions explicitly. Without passing this option, the create workflow will ask you which you would prefer.

## Development

There is no need to run `npm install` as this is a template. The Remix CLI will install the dependencies for you. Make changes to files as you see fit. If there are transformations for files for either the Netlify Functions or Netlify Edge Functions template, make the appropriate changes to the `remix.init/index.js` file.

If you're new to Remix stacks and the remix.init concept, see the official [Remix Stacks](https://remix.run/stacks) documentation.

### Testing your changes

Run

```bash
npx create-remix@latest --template ./remix-template
```

to test your changes to the template. Follow the steps the Remix CLI prompts you with to create a new project. Ensure to test for both the Netlify Functions template and the Netlify Edge Functions template.