- Create Lambda function with secret environment variable - Add YouTube API function to backend configuration - Create Next.js API route to handle YouTube requests - Update gallery page to use API route - This follows the correct Amplify Gen 2 pattern for secrets 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
13 lines
361 B
TypeScript
13 lines
361 B
TypeScript
import { defineBackend } from '@aws-amplify/backend';
|
|
import { auth } from './auth/resource';
|
|
import { data } from './data/resource';
|
|
import { youtubeApi } from './functions/youtube-api/resource';
|
|
|
|
/**
|
|
* @see https://docs.amplify.aws/react/build-a-backend/ to add storage, functions, and more
|
|
*/
|
|
defineBackend({
|
|
auth,
|
|
data,
|
|
youtubeApi,
|
|
});
|