Skip to content
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ npm-debug.log
.turbo
.DS_Store
.vscode
.vercel
.env*.local
338 changes: 213 additions & 125 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"undici": "^6.20.1"
},
"devDependencies": {
"@playwright/test": "^1.50.1",
"@playwright/test": "^1.55.1",
"@types/json-stable-stringify": "^1.2.0",
"json-stable-stringify": "^1.2.1"
}
Expand Down
2 changes: 1 addition & 1 deletion test/next/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const config: PlaywrightTestConfig = {
testDir: path.join(__dirname, 'test'),
testMatch: process.env.PLAYWRIGHT_TEST_MATCH,
// If a test fails, retry it additional 2 times
retries: 2,
retries: 5,
// Artifacts folder where screenshots, videos, and traces are stored.
outputDir: 'test-results/',

Expand Down
9 changes: 0 additions & 9 deletions test/next/src/app/vercel/blob/handle-blob-upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,6 @@ export async function handleUploadHandler(
}),
};
},
// eslint-disable-next-line @typescript-eslint/require-await -- [@vercel/style-guide@5 migration]
onUploadCompleted: async ({ blob, tokenPayload }) => {
console.log('Upload completed', blob, tokenPayload);
try {
// await db.update({ avatar: blob.url, userId: tokenPayload.userId });
} catch (error) {
throw new Error('Could not update user');
}
},
});

return NextResponse.json(jsonResponse);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,6 @@ export default async function handleBody(
}),
};
},
// eslint-disable-next-line @typescript-eslint/require-await -- [@vercel/style-guide@5 migration]
onUploadCompleted: async ({ blob, tokenPayload }) => {
console.log('Upload completed', blob, tokenPayload);
try {
// await db.update({ avatar: blob.url, userId: tokenPayload.userId });
} catch (error) {
throw new Error('Could not update user');
}
},
});

response.json(jsonResponse);
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.