-
Notifications
You must be signed in to change notification settings - Fork 1
/
next.config.js
48 lines (42 loc) · 1.04 KB
/
next.config.js
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
var path = require('path');
/** @type {import('next').NextConfig} */
const nextConfig = {
// output: 'standalone',
// async rewrites() {
// return [
// {
// source: '/pathA',
// destination: 'https://google.com',
// },
// ];
// },
env: {
NEXT_PUBLIC_VAR_ONE: process.env.NEXT_PUBLIC_VAR_ONE,
VAR_ONE: process.env.VAR_ONE,
DB_HOST: process.env.DB_HOST,
DB_PORT: process.env.DB_PORT,
DB_NAME: process.env.DB_NAME,
DB_USER: process.env.DB_USER,
DB_PASSWORD: process.env.DB_PASSWORD,
OLLAMA_BASE_URL: process.env.OLLAMA_BASE_URL,
},
eslint: {
dirs: ['.'],
},
reactStrictMode: true,
experimental: {
serverComponentsExternalPackages: ['sharp', 'onnxruntime-node'],
},
// For use with CMS like Nextra
webpack: (config, options) => {
config.resolve.modules.push(path.resolve('.'));
if (!options.isServer) {
config.resolve.fallback = {
fs: false,
module: false,
};
}
return config;
},
};
module.exports = nextConfig;