umami/next.config.js
2020-09-26 20:46:20 -07:00

23 lines
373 B
JavaScript

require('dotenv').config();
const pkg = require('./package.json');
module.exports = {
env: {
VERSION: pkg.version,
},
serverRuntimeConfig: {
PROJECT_ROOT: __dirname,
},
webpack(config) {
config.module.rules.push({
test: /\.svg$/,
issuer: {
test: /\.js$/,
},
use: ['@svgr/webpack'],
});
return config;
},
};