Skip to content

Commit

Permalink
add sitemap support and fix build errors. (#21)
Browse files Browse the repository at this point in the history
* add sitemap support and fix build errors.

* Fix prisma error
Add prisma env to git ignore

* Run Migration for RDCModelsv1.0

* .

* Nothing happened

* Update main.yml to include database url in env (#22)

---------

Co-authored-by: Shargrove09 <[email protected]>
  • Loading branch information
tydolla00 and Shargrove09 authored Dec 5, 2024
1 parent 2444be1 commit 1ccfcbc
Show file tree
Hide file tree
Showing 21 changed files with 224 additions and 466 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ jobs:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
run: vercel pull --yes --token ${{ secrets.VERCEL_TOKEN }}

- name: Set Database URL
run: echo "DATABASE_URL=${{ secrets.DATABASE_URL }}" >> $GITHUB_ENV

- name: Build with Vercel
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
DATABASE_URL: ${{ secrets.DATABASE_URL }}
run: vercel build --token ${{ secrets.VERCEL_TOKEN }} --prod
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ yarn-error.log*
.env*.local
/.env

/prisma/.env

# vercel
.vercel

Expand Down
7 changes: 0 additions & 7 deletions prisma/.env

This file was deleted.

8 changes: 4 additions & 4 deletions prisma/lib/games.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ export const getWinsPerPlayer = function (gameId: number) {
sessionUrl: true,
sets: {
select: {
matches: { select: { matchWinner: true } },
setWinner: true,
matches: { select: { matchWinners: true } },
setWinners: true,
},
},
},
Expand Down Expand Up @@ -132,10 +132,10 @@ export const getMatchesPerGame = function <T extends StatNames = StatNames>(
select: {
sets: {
select: {
setWinner: true,
setWinners: true,
matches: {
select: {
matchWinner: true,
matchWinners: true,
date: true,
playerSessions: {
select: {
Expand Down
19 changes: 0 additions & 19 deletions prisma/migrations/20241021174935_init/migration.sql

This file was deleted.

35 changes: 0 additions & 35 deletions prisma/migrations/20241022125255_rdcmodelsv01/migration.sql

This file was deleted.

18 changes: 0 additions & 18 deletions prisma/migrations/20241022134030_rdcmodelsv02/migration.sql

This file was deleted.

75 changes: 0 additions & 75 deletions prisma/migrations/20241023204014_rdcmodelsv03/migration.sql

This file was deleted.

41 changes: 0 additions & 41 deletions prisma/migrations/20241024205334_rdcmodelsv04/migration.sql

This file was deleted.

50 changes: 0 additions & 50 deletions prisma/migrations/20241028114014_/migration.sql

This file was deleted.

19 changes: 0 additions & 19 deletions prisma/migrations/20241028142754_/migration.sql

This file was deleted.

77 changes: 0 additions & 77 deletions prisma/migrations/20241102173000_rdcmodelsv05/migration.sql

This file was deleted.

Loading

0 comments on commit 1ccfcbc

Please sign in to comment.