Skip to content

Commit

Permalink
chore: og image refinements (#114)
Browse files Browse the repository at this point in the history
* feat: add stale-while-revalidate to poster img

* chore: refactor hero, improve poster fonts

* chore: remove unused npmrc-props
  • Loading branch information
tom-bywild authored Dec 26, 2022
1 parent a200c3b commit 8dda1da
Show file tree
Hide file tree
Showing 16 changed files with 329 additions and 621 deletions.
16 changes: 14 additions & 2 deletions .vscode/terminals.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,21 @@
"name": "web",
"icon": "code",
"color": "terminal.ansiCyan",
"commands": ["cd web", "nvm use"],
"commands": [
"cd web",
"nvm use"
],
"open": true,
"focus": true
},
{
"name": "service/og-img-gen",
"color": "terminal.ansiGreen",
"commands": [
"cd services/og-img-gen",
"nvm use",
"npm run dev"
]
}
]
}
}
2 changes: 2 additions & 0 deletions services/og-img-gen/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
engine-strict=true
save-exact=true
4 changes: 3 additions & 1 deletion services/og-img-gen/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Services / og-poster-gen
# og-poster-gen

## About

Expand All @@ -12,6 +12,8 @@ Make sure you have the currently selected version from `/.nvmrc` installed. You

- [Node.js](https://nodejs.org/en/) (v18.x)

If not present, copy the contents of `.env.example` to `.env`. Replace the path to your local Chromium executable in the `CHROME_BIN` variable if necessary.

### Installation

```bash
Expand Down
3 changes: 2 additions & 1 deletion services/og-img-gen/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions services/og-img-gen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
"node": ">=18.x"
},
"scripts": {
"dev": "micro -l tcp://0.0.0.0:7070",
"start": "micro -l tcp://0.0.0.0:8080"
"dev": "npm run clean && micro -l tcp://0.0.0.0:7070",
"start": "micro -l tcp://0.0.0.0:8080",
"clean": "rimraf 0.0.0.0"
},
"keywords": [],
"author": "",
Expand All @@ -21,6 +22,7 @@
},
"devDependencies": {
"dotenv": "^16.0.3",
"prettier": "^2.8.1"
"prettier": "^2.8.1",
"rimraf": "3.0.2"
}
}
}
1 change: 1 addition & 0 deletions web/.npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
engine-strict=true
save-exact=true
Loading

0 comments on commit 8dda1da

Please sign in to comment.