Skip to content

Instantly share code, notes, and snippets.

@weianofsteel
Created February 23, 2021 15:31
Show Gist options
  • Save weianofsteel/38005ebf0933a14b3276f13a7802b873 to your computer and use it in GitHub Desktop.
Save weianofsteel/38005ebf0933a14b3276f13a7802b873 to your computer and use it in GitHub Desktop.
next.config.js
const { nextI18NextRewrites } = require('next-i18next/rewrites')
const withImages = require('next-images')
const localeSubpaths = { zhHant:'cn', fr: 'fr' }
module.exports = withImages({
rewrites: async () => nextI18NextRewrites(localeSubpaths),
publicRuntimeConfig: {
localeSubpaths
},
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment