Skip to content

Commit

Permalink
add basepath
Browse files Browse the repository at this point in the history
  • Loading branch information
Dnouv committed Mar 21, 2024
1 parent 246792b commit 77c33ce
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions app/next.config.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
const path = require('path')
const path = require('path');

module.exports = {
reactStrictMode: true,
output: 'standalone',
sassOptions: {
includePaths: [path.join(__dirname, 'styles')],
},
basePath: '/community',
images: {
domains: ['global-uploads.webflow.com', 'avatars.githubusercontent.com', 'open.rocket.chat', 'media-exp1.licdn.com']
domains: [
'global-uploads.webflow.com',
'avatars.githubusercontent.com',
'open.rocket.chat',
'media-exp1.licdn.com',
],
},
webpack: (config, { isServer }) => {
// Fixes npm packages that depend on `fs` module
if (!isServer) {
config.resolve.fallback = {
fs: false
}
fs: false,
};
}
return config
}
}
return config;
},
};

0 comments on commit 77c33ce

Please sign in to comment.