metaplex/js/packages/web/next.config.js

42 lines
846 B
JavaScript
Raw Normal View History

const withPlugins = require('next-compose-plugins');
2021-07-07 02:56:46 -07:00
const withLess = require('next-with-less');
2021-07-20 06:29:43 -07:00
const assetPrefix = process.env.ASSET_PREFIX || '';
2021-07-20 05:49:22 -07:00
const plugins = [
[
withLess,
{
lessLoaderOptions: {
lessOptions: {
modifyVars: {
'@primary-color': '#768BF9',
'@text-color': 'rgba(255, 255, 255)',
2021-07-20 05:49:22 -07:00
'@assetPrefix': assetPrefix || "''",
},
javascriptEnabled: true,
},
},
},
],
];
module.exports = withPlugins(plugins, {
2021-07-20 05:49:22 -07:00
assetPrefix,
reactStrictMode: true,
2021-07-08 04:37:00 -07:00
eslint: {
ignoreDuringBuilds: true,
},
2021-07-21 03:08:51 -07:00
env:{
NEXT_PUBLIC_STORE_OWNER_ADDRESS_ADDRESS: process.env.REACT_APP_STORE_OWNER_ADDRESS_ADDRESS,
},
2021-07-07 02:56:46 -07:00
async rewrites() {
return [
{
source: '/:any*',
destination: '/',
},
];
},
});