-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
executable file
·67 lines (60 loc) · 1.42 KB
/
next.config.js
File metadata and controls
executable file
·67 lines (60 loc) · 1.42 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
const CopyPlugin = require("copy-webpack-plugin");
const { withSentryConfig } = require("@sentry/nextjs");
/** @type {import('next').NextConfig} */
const nextConfig = {
webpack(config, { isServer }) {
config.plugins.push(
new CopyPlugin({
patterns: [
{
from: "node_modules/@rdkit/rdkit/dist/RDKit_minimal.wasm",
to: "static/chunks",
},
],
})
);
if (!isServer) {
config.resolve.fallback = {
fs: false,
};
}
return config;
},
async rewrites() {
return [
{
source: "/api/proxy/:path*",
destination: "https://health.api.nvidia.com/v1/biology/nvidia/molmim/:path*",
},
];
},
async headers() {
return [
{
source: "/api/proxy/:path*",
headers: [
{
key: "Access-Control-Allow-Origin",
value: "*",
},
{
key: "Access-Control-Allow-Methods",
value: "GET, POST, OPTIONS, PUT, DELETE",
},
{
key: "Access-Control-Allow-Headers",
value: "X-Requested-With, Content-Type, Authorization",
},
],
},
];
},
};
module.exports = withSentryConfig(nextConfig, {
org: "deepraj-ox",
project: "drugdiscovery-nextjs",
silent: !process.env.CI,
widenClientFileUpload: true,
disableLogger: true,
automaticVercelMonitors: true,
});