2021-07-07 03:41:07 -07:00
|
|
|
const withPlugins = require('next-compose-plugins');
|
2021-07-07 02:56:46 -07:00
|
|
|
const withLess = require('next-with-less');
|
2021-07-07 03:41:07 -07:00
|
|
|
const nextEnv = require('next-env');
|
|
|
|
const dotenvLoad = require('dotenv-load');
|
2021-07-07 02:56:46 -07:00
|
|
|
|
2021-07-07 03:41:07 -07:00
|
|
|
dotenvLoad();
|
|
|
|
|
|
|
|
const plugins = [
|
|
|
|
nextEnv({
|
|
|
|
publicPrefix: 'REACT_APP_',
|
|
|
|
}),
|
|
|
|
[
|
|
|
|
withLess,
|
|
|
|
{
|
|
|
|
lessLoaderOptions: {
|
|
|
|
lessOptions: {
|
|
|
|
modifyVars: {
|
|
|
|
'@primary-color': '#768BF9',
|
|
|
|
'@text-color': 'rgba(255, 255, 255)',
|
|
|
|
},
|
|
|
|
javascriptEnabled: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
];
|
|
|
|
|
|
|
|
module.exports = withPlugins(plugins, {
|
|
|
|
reactStrictMode: true,
|
2021-07-08 04:37:00 -07:00
|
|
|
eslint: {
|
|
|
|
ignoreDuringBuilds: true,
|
|
|
|
},
|
2021-07-07 02:56:46 -07:00
|
|
|
async rewrites() {
|
|
|
|
return [
|
|
|
|
{
|
|
|
|
source: '/:any*',
|
|
|
|
destination: '/',
|
|
|
|
},
|
|
|
|
];
|
|
|
|
},
|
|
|
|
});
|