cheatingchelsea/next.config.ts
Derek Slenk 626219620b Add secrets configuration and deployment scripts
- Added GitHub Actions secrets configuration for deployment
- Updated next.config.ts with environment variables
- Modified package.json for production deployment
- Added robots.ts and sitemap.ts configuration
- Created deployment scripts directory
2025-06-29 17:42:11 -04:00

40 lines
853 B
TypeScript

import type {NextConfig} from 'next';
const nextConfig: NextConfig = {
/* config options here */
output: 'export',
trailingSlash: true,
skipTrailingSlashRedirect: true,
typescript: {
ignoreBuildErrors: true,
},
eslint: {
ignoreDuringBuilds: true,
},
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'placehold.co',
port: '',
pathname: '/**',
},
{
protocol: 'https',
hostname: 'img.youtube.com',
port: '',
pathname: '/**',
},
],
},
// Make environment variables available to the browser
publicRuntimeConfig: {
YOUTUBE_API_KEY: process.env.YOUTUBE_API_KEY,
},
// Server-side environment variables
serverRuntimeConfig: {
YOUTUBE_API_KEY: process.env.YOUTUBE_API_KEY,
},
};
export default nextConfig;