TheClashFruit
a1a648446d
All checks were successful
Deploy Website / build (push) Successful in 1m58s
25 lines
717 B
JavaScript
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); |