mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
See related https://github.com/vercel/next.js/issues/51969. It should no longer apply.
16 lines
365 B
TypeScript
16 lines
365 B
TypeScript
import { GetObjectCommand } from '@aws-sdk/client-s3'
|
|
import { isObject } from 'lodash'
|
|
|
|
export default function Page() {
|
|
const command = new GetObjectCommand({
|
|
Bucket: 'bucket',
|
|
Key: 'key1',
|
|
})
|
|
return (
|
|
<div>
|
|
<div id="key">Key: {command.input.Key}</div>
|
|
<div id="isObject">isObject: {String(isObject(command))}</div>
|
|
</div>
|
|
)
|
|
}
|