Skip to content

Instantly share code, notes, and snippets.

@saitonakamura
Last active February 19, 2018 21:02
Show Gist options
  • Save saitonakamura/c34f13740532ddeb1dbeb66ca151368f to your computer and use it in GitHub Desktop.
Save saitonakamura/c34f13740532ddeb1dbeb66ca151368f to your computer and use it in GitHub Desktop.
Next.js on Github Pages WIP
const isProd = (process.env.NODE_ENV || 'production') === 'production'
module.exports = {
exportPathMap: () => ({
'/': { page: '/' },
}),
assetPrefix: isProd ? '/your-repository-name' : '',
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment