-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnext.config.js
More file actions
46 lines (42 loc) · 1.11 KB
/
next.config.js
File metadata and controls
46 lines (42 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/** @type {import('next').NextConfig} */
const nextConfig = {
// Optimize for production
experimental: {
optimizePackageImports: ['@google/generative-ai', 'openai', '@anthropic-ai/sdk'],
},
// Handle cross-origin requests for development
async headers() {
return [
{
source: '/_next/:path*',
headers: [
{
key: 'Access-Control-Allow-Origin',
value: '*',
},
],
},
];
},
// Handle external packages
transpilePackages: [],
// App Router is now stable in Next.js 15+
typescript: {
// Enable strict mode for better type checking
ignoreBuildErrors: false,
},
eslint: {
// Enable ESLint during builds
ignoreDuringBuilds: false,
},
env: {
GEMINI_API_KEY: process.env.GEMINI_API_KEY,
GITHUB_TOKEN: process.env.GITHUB_TOKEN,
GITHUB_OWNER: process.env.GITHUB_OWNER,
GITHUB_REPO: process.env.GITHUB_REPO,
SLACK_BOT_TOKEN: process.env.SLACK_BOT_TOKEN,
SLACK_CHANNEL_ID: process.env.SLACK_CHANNEL_ID,
CHROMA_URL: process.env.CHROMA_URL,
},
};
module.exports = nextConfig;