Replies: 1 comment 6 replies
-
It looks like a typo is causing the issues: You have Fixing that allows the app to run! |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I was having the same issue using withPlugins plugin; however, in an attempt to simplifiy things and make modifications to the configuration without plugins I set up the following and am now unable to even load the site. I've read through the documentation but not sure what I'm doing wrong. Any help would be greatly appreciated.
Using version 9.4
`const {
PHASE_DEVELOPMENT_SERVER,
PHASE_PRODUCTION_BUILD,
} = require("next/constants");
const withPlugins = require("next-compose-plugins");
const withLess = require("@zeit/next-less");
const withCss = require("@zeit/next-css");
const withSass = require("@zeit/next-sass");
const lessToJS = require("less-vars-to-js");
const fs = require("fs");
const path = require("path");
const themeVariables = lessToJS(
fs.readFileSync(
path.resolve(__dirname, "./styles/antd-custom.less"),
"utf-8",
),
);
module.exports = (phase, { defaultConfig }) => {
const isDev = phase === PHASE_DEVELOPMENT_SERVER;
const isProd =
phase === PHASE_PRODUCTION_BUILD && process.env.STAGING !== "1";
const isStaging =
phase === PHASE_PRODUCTION_BUILD && process.env.STAGING === "1";
console.log(
isDev: ${isDev} isProd: ${isProd} isStaging: ${isStaging}
);});
};
`
Beta Was this translation helpful? Give feedback.
All reactions