Created
February 23, 2021 15:31
-
-
Save weianofsteel/38005ebf0933a14b3276f13a7802b873 to your computer and use it in GitHub Desktop.
next.config.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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