-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Closed
Description
Bug report
Hi guys, when I use dev: false inside my app, material-ui classes wont load.
Describe the bug
That's the code:
const port = process.env.PORT || 3000;
const dev = process.env.NODE_ENV !== 'production';
const app = next({ dev: false });
const handle = app.getRequestHandler();
app.prepare().then(() => {
const server = express();
// Routes and stuff...
})The expected result should be:

To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
- Install @material-ui
"@material-ui/core": "latest",
"@material-ui/icons": "^3.0.1",
"@material-ui/styles": "^3.0.0-alpha.2",- Run the server with production build
System information
- OS: macOS Mojave
v10.14.2 - Version of Next.js:
7.0.2
Metadata
Metadata
Assignees
Labels
No labels
