Commit b17cf440c9dbf4e1f387500422eac5a7b137232e
Includes export feature to easily publish to Dat
Rômulo Alves committed on 5/6/2018, 1:29:49 PMParent: 47da1a3230ba9e094b0ae8019dbc69f445f8d66e
Files changed
.gitignore | changed |
next.config.js | changed |
package.json | changed |
next.config.js | ||
---|---|---|
@@ -1,3 +1,10 @@ | ||
1 | 1 … | const withPreact = require('@zeit/next-preact'); |
2 | 2 … | |
3 | -module.exports = withPreact(); | |
3 … | +module.exports = withPreact({ | |
4 … | + exportPathMap () { | |
5 … | + return { | |
6 … | + '/': { page: '/' }, | |
7 … | + '/talks': { page: '/talks' } | |
8 … | + } | |
9 … | + } | |
10 … | +}); |
package.json | |||
---|---|---|---|
@@ -15,9 +15,10 @@ | |||
15 | 15 … | }, | |
16 | 16 … | "scripts": { | |
17 | 17 … | "dev": "next", | |
18 | 18 … | "start": "node server.js", | |
19 | - "build": "next build" | ||
19 … | + "build": "next build", | ||
20 … | + "export": "./node_modules/.bin/next build && ./node_modules/.bin/next export" | ||
20 | 21 … | }, | |
21 | 22 … | "now": { | |
22 | 23 … | "alias": [ | |
23 | 24 … | "romuloalv.es", |
Built with git-ssb-web