Skip to content

Commit 539256e

Browse files
committed
first commit
0 parents  commit 539256e

File tree

126 files changed

+20412
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+20412
-0
lines changed

Diff for: .babelrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": ["next/babel"]
3+
}

Diff for: .gitignore

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# See https://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
6+
# misc
7+
.DS_Store
8+
.env.local
9+
.env.development.local
10+
.env.test.local
11+
.env.production.local
12+
13+
npm-debug.log*
14+
yarn-debug.log*
15+
yarn-error.log*
16+
17+
# Next.js
18+
/.next

Diff for: README.md

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Next.js example
2+
3+
## How to use
4+
5+
Download the example [or clone the repo](https://github.com/mui-org/material-ui):
6+
7+
```sh
8+
curl https://codeload.github.com/mui-org/material-ui/tar.gz/master | tar -xz --strip=2 material-ui-master/examples/nextjs
9+
cd nextjs
10+
```
11+
12+
Install it and run:
13+
14+
```sh
15+
npm install
16+
npm run dev
17+
```
18+
19+
or:
20+
21+
[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/github/mui-org/material-ui/tree/master/examples/nextjs)
22+
23+
## The idea behind the example
24+
25+
[Next.js](https://github.com/zeit/next.js) is a framework for server-rendered React apps.

Diff for: next.config.js

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// next.config.js
2+
const withPlugins = require('next-compose-plugins');
3+
const optimizedImages = require('next-optimized-images');
4+
5+
module.exports = withPlugins([
6+
[optimizedImages, {
7+
/* config for next-optimized-images */
8+
}],
9+
10+
// your other plugins here
11+
12+
]);

0 commit comments

Comments
 (0)