-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update list design, add head * fix back button
- Loading branch information
1 parent
14bafa0
commit be5a878
Showing
5 changed files
with
103 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import * as vercelBlob from '@vercel/blob'; | ||
import { NextResponse } from 'next/server'; | ||
|
||
export async function POST(request: Request): Promise<NextResponse> { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment | ||
const body: { url: string } = await request.json(); | ||
if (!body.url) | ||
return NextResponse.json(new Error('url is required'), { status: 400 }); | ||
|
||
return NextResponse.json(await vercelBlob.head(body.url)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
be5a878
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
vercel-storage-next-integration-test-suite – ./
vercel-storage-next-integration-test-suite-curated-tests.vercel.app
storage-rho.vercel.app
vercel-storage-next-integration-test-s-git-14bcac-curated-tests.vercel.app