Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dhaiwat10/remix-vercel-barebones
A barebones Remix starter configured for deployment to Vercel
https://github.com/dhaiwat10/remix-vercel-barebones
Last synced: 9 days ago
JSON representation
A barebones Remix starter configured for deployment to Vercel
- Host: GitHub
- URL: https://github.com/dhaiwat10/remix-vercel-barebones
- Owner: Dhaiwat10
- Created: 2021-11-23T02:07:57.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-23T03:24:29.000Z (about 3 years ago)
- Last Synced: 2024-10-05T07:40:59.741Z (3 months ago)
- Language: TypeScript
- Size: 94.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Welcome to Remix!
- [Remix Docs](https://remix.run/docs)
## Vercel Setup
First you'll need the [Vercel CLI](https://vercel.com/docs/cli):
```sh
npm i -g vercel
```Before you can run the app in development, you need to link this project to a new Vercel project on your account.
**It is important that you use a new project. If you try to link this project to an existing project (like a Next.js site) you will have problems.**
```sh
$ vercel link
```Follow the prompts, and when it's done you should be able to get started.
## Development
You will be running two processes during development when using Vercel as your server.
- Your Vercel server in one
- The Remix development server in another```sh
# in one tab
$ vercel dev# in another
$ npm run dev
```Open up [http://localhost:3000](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](https://npm.im/concurrently) or similar tools to run both processes in one tab.
## Deploying
```sh
$ npm run build
# preview deployment
$ vercel# production deployment
$ vercel --prod
```### GitHub Automatic Deployments
For some reason the GitHub integration doesn't deploy the public folder. We're working with Vercel to figure this out.
For now, [you can set up a GitHub action with this config](https://gist.github.com/mcansh/91f8effda798b41bb373351fad217070) from our friend [@mcansh](https://github.com/mcansh).