Skip to content

Commit

Permalink
[NextJS] Can't start app in disconnected mode, throws webpack `fallba…
Browse files Browse the repository at this point in the history
…ck` option error (#913)
  • Loading branch information
illiakovalenko authored Jan 25, 2022
1 parent a49d48c commit 512c299
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ const disconnectedPlugin = (nextConfig = {}) => {
webpack: (config, options) => {
// Prevent webpack-5 from throwing error for sitecore-import.json when app first starts
config.resolve.fallback = {
'sitecore/manifest/sitecore-import.json': false
'sitecore/manifest/sitecore-import.json': false,
...config.resolve.fallback
};

// Overload the Webpack config if it was already overloaded
Expand Down

0 comments on commit 512c299

Please sign in to comment.