diff --git a/.gitignore b/.gitignore index 4c5e94dbb..b81e4f1bd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ .next .idea .DS_Store +out +build node_modules yarn-error.log \ No newline at end of file diff --git a/next.config.js b/next.config.js index 271a883cc..dbccdd348 100644 --- a/next.config.js +++ b/next.config.js @@ -2,6 +2,15 @@ const withSass = require('@zeit/next-sass'); const withCSS = require('@zeit/next-css'); module.exports = withCSS(withSass({ + exportPathMap: () => { + return { + '/': { page: '/' }, + '/about': { page: '/about' }, + '/privacy': { page: '/privacy' }, + '/terms': { page: '/terms' }, + }; + }, + webpack(config, options) { config.module.rules.push({ test: /\.(png|jpg|gif|svg|eot|ttf|woff|woff2)$/, diff --git a/package.json b/package.json index 05b82f8ed..fe4dffc3c 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "scripts": { "dev": "next", "build": "next build", - "start": "next start" + "start": "next start", + "html": "next export" }, "dependencies": { "@fortawesome/fontawesome-svg-core": "^1.2.22",