Skip to content

Commit

Permalink
Merge pull request #23 from tobyrushton/production
Browse files Browse the repository at this point in the history
Merge hot fixes
  • Loading branch information
tobyrushton authored Feb 16, 2024
2 parents b259e16 + dbb8d70 commit cec4d3c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/app/api/cron/daily-db-scrape/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { updateGameStats } from '@/server/functions/update-game-stats'
import { updatePlayers } from '@/server/functions/update-player'
import { updateSeasonAverages } from '@/server/functions/update-season-averages'

export const dynamic = 'force-dynamic'

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

export const dynamic = 'force-dynamic'

// cron job to be ran weekly
export const GET = async (): Promise<NextResponse> => {
try {
Expand Down
4 changes: 1 addition & 3 deletions src/app/api/trpc/[trpc]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ import { appRouter } from '@/server'
import { createContext } from '@/server/context'
import { fetchRequestHandler } from '@trpc/server/adapters/fetch'

export const config = {
runtime: 'edge',
}
export const runtime = 'edge'

const handler = (req: Request): Promise<Response> =>
fetchRequestHandler({
Expand Down

0 comments on commit cec4d3c

Please sign in to comment.