mirror of https://github.com/boxyhq/jackson.git
39 lines
1.1 KiB
JavaScript
39 lines
1.1 KiB
JavaScript
const { i18n } = require('./next-i18next.config');
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
|
|
module.exports = {
|
|
reactStrictMode: true,
|
|
i18n,
|
|
output: 'standalone',
|
|
webpack: (config, { webpack, isServer }) => {
|
|
if (isServer) {
|
|
// Module not found
|
|
config.plugins.push(
|
|
new webpack.IgnorePlugin({
|
|
resourceRegExp:
|
|
/(^aws4$|^pg-native$|^mongodb-client-encryption$|^@sap\/hana-client$|^snappy$|^react-native-sqlite-storage$|^bson-ext$|^cardinal$|^kerberos$|^hdb-pool$|^mssql$|^sql.js$|^sqlite3$|^better-sqlite3$|^ioredis$|^typeorm-aurora-data-api-driver$|^pg-query-stream$|^oracledb$|^mysql$|^snappy\/package\.json$)/,
|
|
})
|
|
);
|
|
}
|
|
|
|
return config;
|
|
},
|
|
rewrites: async () => {
|
|
return [
|
|
{
|
|
source: '/.well-known/openid-configuration',
|
|
destination: '/api/well-known/openid-configuration',
|
|
},
|
|
{
|
|
source: '/.well-known/saml-configuration',
|
|
destination: '/well-known/saml-configuration',
|
|
},
|
|
{
|
|
source: '/oauth/jwks',
|
|
destination: '/api/oauth/jwks',
|
|
},
|
|
];
|
|
},
|
|
};
|