-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: first pass at hardening api * ci: initial * fix: path to lock file * fix: sigh tis late * fix: sigh tis late * fix: sigh tis late * fix: sigh tis late * fix: almost there * fix: almost there * fix: dass how da cookie crumbles * chore: check env vars at startup
- Loading branch information
1 parent
a5b4ddc
commit d260e31
Showing
8 changed files
with
324 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: | ||
# Change this if your primary branch is not main | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
main: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [20] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'pnpm' | ||
- name: Install dependencies | ||
run: pnpm i --frozen-lockfile | ||
- uses: nrwl/nx-set-shas@v3 | ||
# This line is needed for nx affected to work when CI is running on a PR | ||
- run: git fetch | ||
- run: git branch --track main origin/main | ||
- run: npx nx affected -t build --parallel=3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -183,3 +183,6 @@ client.json | |
token.json | ||
credentials.json | ||
data*.json | ||
|
||
# Redis | ||
dump.rdb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import RedisStore from 'connect-redis'; | ||
import { createClient } from 'redis'; | ||
|
||
export const SessionStore = async () => { | ||
const redisClient = createClient(); | ||
redisClient.connect().catch(console.error); | ||
|
||
const redisStore = new RedisStore({ | ||
client: redisClient, | ||
prefix: 'myapp:', | ||
}); | ||
|
||
return new Promise((resolve, reject) => { | ||
if (!redisStore) reject(null); | ||
resolve(redisStore); | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.