Skip to content

Commit

Permalink
Make it work zero config (vercel#118)
Browse files Browse the repository at this point in the history
* Made it work zero config

* Rewrite correctly

* Renamed ignore file

* Stop using micro dev
  • Loading branch information
leo authored Jul 23, 2021
1 parent 8ee8e01 commit 79d299c
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 475 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ http.createServer((req, res) => {

1. [Fork](https://help.github.com/articles/fork-a-repo/) this repository to your own GitHub account and then [clone](https://help.github.com/articles/cloning-a-repository/) it to your local device
2. Move into the directory of your clone: `cd hazel`
3. Run the development server: `npm run dev`
3. Install [Vercel CLI](https://vercel.com/cli) and run the development server: `vercel dev`

## Credits

Expand Down
3 changes: 3 additions & 0 deletions api/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const server = require('../lib/server');

module.exports = server
16 changes: 0 additions & 16 deletions now.json

This file was deleted.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
"main": "lib/index.js",
"description": "Lightweight update server for Electron apps",
"scripts": {
"dev": "micro-dev lib/server.js",
"dev": "npx vercel dev",
"test": "xo && jest",
"precommit": "lint-staged"
},
"license": "MIT",
"repository": "zeit/hazel",
"repository": "vercel/hazel",
"xo": {
"extends": [
"prettier"
Expand Down Expand Up @@ -49,7 +49,6 @@
"eslint-config-prettier": "2.9.0",
"husky": "0.14.3",
"lint-staged": "7.0.0",
"micro-dev": "2.2.0",
"prettier": "1.10.2",
"xo": "0.20.3"
}
Expand Down
8 changes: 8 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"rewrites": [
{
"source": "/(.*)",
"destination": "/api"
}
]
}
Loading

0 comments on commit 79d299c

Please sign in to comment.