Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

revert cron to node runtime #29

Merged
merged 1 commit into from
Feb 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/build_next.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Next / Lint

on:
pull_request:
branches:
- production

jobs:
lint:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: npm ci and lint
run: |
npm ci
npm run lint
4 changes: 2 additions & 2 deletions package-lock.json

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

1 change: 0 additions & 1 deletion src/app/api/cron/daily-db-scrape/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { updatePlayers } from '@/server/functions/update-player'
import { updateSeasonAverages } from '@/server/functions/update-season-averages'

export const dynamic = 'force-dynamic'
export const runtime = 'edge'

// cron job to be ran daily
export const GET = async (): Promise<NextResponse> => {
Expand Down
1 change: 0 additions & 1 deletion src/app/api/cron/weekly-db-scrape/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { updateTeams } from '@/server/functions/update-teams'
import { updateSchedule } from '@/server/functions/update-schedule'

export const dynamic = 'force-dynamic'
export const runtime = 'edge'

// cron job to be ran weekly
export const GET = async (): Promise<NextResponse> => {
Expand Down