Skip to content

Commit

Permalink
Migrate from Vercel to Serverless
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoBernardino committed Feb 13, 2021
1 parent 7730050 commit af61632
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 40 deletions.
2 changes: 2 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
NODE_PATH=/
AWS_ACCESS_KEY_ID=accesskey
AWS_SECRET_ACCESS_KEY=sshhh
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
.DS_Store
node_modules
*.log
*.zip
.env
.next
.env.build
.vercel
.serverless
.serverless_nextjs
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules
.next
package-lock.json
.vercel
.serverless
.serverless_nextjs
11 changes: 0 additions & 11 deletions .vercelignore

This file was deleted.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ pretty:

.PHONY: deploy
deploy:
vercel --prod
serverless
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![](https://github.com/BrunoBernardino/budgetzen-web/workflows/Run%20Tests/badge.svg)](https://github.com/BrunoBernardino/budgetzen-web/actions?workflow=Run+Tests)

This is the web app for the [Budget Zen app](https://budgetzen.net), built with Next.js and deployed with Vercel.
This is the web app for the [Budget Zen app](https://budgetzen.net), built with Next.js and deployed to AWS with Vercel.

It runs completely in the browser, using `localStorage` and `IndexedDB`.

Expand All @@ -15,7 +15,7 @@ make install # installs dependencies
make start # starts the app
make pretty # prettifies the code
make test # runs linting and tests
make deploy # deploys to app.budgetzen.net (requires `vercel` to be installed globally)
make deploy # deploys to app.budgetzen.net (requires `serverless` to be installed globally)
```

## TODOs
Expand Down
10 changes: 10 additions & 0 deletions serverless.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
service:
name: budgetzen-web

myNextAppplication:
component: "@sls-next/serverless-component@1.18.0"
inputs:
domain: ["app", "budgetzen.net"]
build:
env:
NODE_PATH: "/"
24 changes: 0 additions & 24 deletions vercel.json

This file was deleted.

0 comments on commit af61632

Please sign in to comment.