mirror of
https://github.com/oxen-io/oxen-website.git
synced 2023-12-13 21:00:18 +01:00
37 lines
884 B
JavaScript
37 lines
884 B
JavaScript
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
const withPlugins = require('next-compose-plugins');
|
|
const withFonts = require('next-fonts');
|
|
const withSvgr = require('next-svgr');
|
|
|
|
const nextConfig = {
|
|
webpack(config) {
|
|
const rules = [{}];
|
|
|
|
return {
|
|
...config,
|
|
module: {
|
|
...config.module,
|
|
rules: [...config.module.rules, ...rules],
|
|
},
|
|
node: {
|
|
fs: 'empty',
|
|
},
|
|
};
|
|
},
|
|
env: {
|
|
CONTENTFUL_SPACE_ID: process.env.CONTENTFUL_SPACE_ID,
|
|
CONTENTFUL_ACCESS_TOKEN: process.env.CONTENTFUL_ACCESS_TOKEN,
|
|
},
|
|
async redirects() {
|
|
return [
|
|
{
|
|
source: '/blog/session-the-road-to-monetisation-and-oxen-value-capture',
|
|
destination: '/blog/session-the-road-to-monetisation',
|
|
permanent: true,
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
module.exports = withPlugins([withFonts, withSvgr], nextConfig);
|