Skip to content

Commit 18f97a3

Browse files
committed
using mdx for pages
1 parent c4b5347 commit 18f97a3

File tree

6 files changed

+17
-88
lines changed

6 files changed

+17
-88
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
static
22
node_modules
33
.next
4+
npm-debug.log

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v11.13.0

next.config.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// next.config.js
2+
const withMDX = require("@next/mdx")({
3+
extension: /\.mdx?$/
4+
});
5+
module.exports = withMDX({
6+
pageExtensions: ["js", "jsx", "mdx"]
7+
});

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
"start": "next start"
99
},
1010
"dependencies": {
11-
"next": "9.0.6",
11+
"@mdx-js/loader": "^1.4.5",
12+
"@next/mdx": "^9.0.6",
13+
"next": "^9.0.6",
1214
"react": "16.9.0",
1315
"react-dom": "16.9.0"
1416
}

pages/index.js

-87
This file was deleted.

pages/index.mdx

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Rent Cap
2+
3+
California is soon going to adopt a new law that limits the amount that landlords can increase rent per yer for most renters.
4+
5+
Find out whether your apartment will be affected by this legislation!

0 commit comments

Comments
 (0)