- Add amplify.yml for proper build configuration - Update next.config.ts to expose YOUTUBE_API_KEY env var - This should fix the issue with secrets not being available in production 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
32 lines
589 B
TypeScript
32 lines
589 B
TypeScript
import type {NextConfig} from 'next';
|
|
|
|
const nextConfig: NextConfig = {
|
|
/* config options here */
|
|
typescript: {
|
|
ignoreBuildErrors: true,
|
|
},
|
|
eslint: {
|
|
ignoreDuringBuilds: true,
|
|
},
|
|
images: {
|
|
remotePatterns: [
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'placehold.co',
|
|
port: '',
|
|
pathname: '/**',
|
|
},
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'img.youtube.com',
|
|
port: '',
|
|
pathname: '/**',
|
|
},
|
|
],
|
|
},
|
|
env: {
|
|
YOUTUBE_API_KEY: process.env.YOUTUBE_API_KEY || '',
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|