-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathnext.config.js
More file actions
47 lines (42 loc) · 968 Bytes
/
next.config.js
File metadata and controls
47 lines (42 loc) · 968 Bytes
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
47
// @ts-check
/** @type {import('next').NextConfig} */
const nextConfig = {
/* config options here */
reactStrictMode: true,
devIndicators: false,
// Disable ESLint checks during build
eslint: {
ignoreDuringBuilds: true,
},
// Disable TypeScript type checking during build
typescript: {
ignoreBuildErrors: true,
},
env: {
TTS_KEY: process.env.TTS_KEY,
TTS_REGION: process.env.TTS_REGION,
},
// API route configuration
async headers() {
return [
{
source: '/api/mcp/(.*)',
headers: [
{
key: 'Access-Control-Allow-Origin',
value: '*',
},
{
key: 'Access-Control-Allow-Methods',
value: 'GET, POST, PUT, DELETE, OPTIONS',
},
{
key: 'Access-Control-Allow-Headers',
value: 'Content-Type, Authorization',
},
],
},
];
},
}
module.exports = nextConfig