website/next.config.js
TheClashFruit a1a648446d
All checks were successful
Deploy Website / build (push) Successful in 1m58s
feat: testing
2024-08-03 18:45:39 +02:00

25 lines
717 B
JavaScript

const path = require('path');
const createMDX = require('@next/mdx');
const childProcess = require('child_process');
const isProd = process.env.NODE_ENV === 'production';
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'export',
reactStrictMode: true,
sassOptions: {
includePaths: [ path.join(__dirname, 'styles') ]
},
generateBuildId: async () => {
return childProcess.execSync('git rev-parse HEAD').toString().trim();
},
pageExtensions: [ 'js', 'jsx', 'md', 'mdx', 'ts', 'tsx' ],
assetPrefix: isProd ? 'http://localhost:3000/flint/website/pages' : undefined
};
module.exports = createMDX({
mdPlugins: [
import('rehype-highlight')
]
})(nextConfig);