Skip to content

Commit dbd3d45

Browse files
committed
Undo some unnecessary changes
1 parent be79370 commit dbd3d45

File tree

1 file changed

+1
-27
lines changed

1 file changed

+1
-27
lines changed

next.config.mjs

+1-27
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,4 @@ const withNextra = nextra({
99
}
1010
})
1111

12-
// Configuration object with headers
13-
const nextConfig = {
14-
async headers() {
15-
return [
16-
{
17-
source: '/:path*',
18-
headers: [
19-
{
20-
key: 'Access-Control-Allow-Origin',
21-
value: '*'
22-
},
23-
{
24-
key: 'Access-Control-Allow-Methods',
25-
value: 'GET,OPTIONS,PATCH,DELETE,POST,PUT'
26-
},
27-
{
28-
key: 'Access-Control-Allow-Headers',
29-
value: 'X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version'
30-
}
31-
]
32-
}
33-
]
34-
}
35-
}
36-
37-
// Combine Nextra with the custom config
38-
export default withNextra(nextConfig)
12+
export default withNextra()

0 commit comments

Comments
 (0)