Skip to content

Instantly share code, notes, and snippets.

View saitonakamura's full-sized avatar
😺

Michael サイトー 中村 Bashurov saitonakamura

😺
View GitHub Profile
@saitonakamura
saitonakamura / next.config.js
Created February 19, 2018 21:02
Next.js on Github Pages
const webpack = require('webpack')
const isProd = (process.env.NODE_ENV || 'production') === 'production'
const assetPrefix = isProd ? '/your-repository-name' : ''
module.exports = {
exportPathMap: () => ({
'/': { page: '/' },
'/page1': { page: '/page1' },
@saitonakamura
saitonakamura / next.config.js
Last active February 19, 2018 21:02
Next.js on Github Pages WIP
const isProd = (process.env.NODE_ENV || 'production') === 'production'
module.exports = {
exportPathMap: () => ({
'/': { page: '/' },
}),
assetPrefix: isProd ? '/your-repository-name' : '',
}