Skip to content

Commit

Permalink
Attempt to log ships that are too large
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwofford committed Nov 14, 2024
1 parent 211ee2b commit 4f76250
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export async function userPageMiddleware(request: NextRequest) {
const shipyardPage = request.nextUrl.pathname.startsWith('/shipyard')
if (shipyardPage && !request.cookies.get('ships')) {
const ships = await fetchShips(slackId, 2)
console.log(ships.map((s) => s.title))
console.log("ships too big:", tooBig(ships))
response.cookies.set({
name: 'ships',
Expand Down

0 comments on commit 4f76250

Please sign in to comment.