mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
26 lines
500 B
JavaScript
26 lines
500 B
JavaScript
module.exports = {
|
|
basePath: '/basepath',
|
|
i18n: {
|
|
locales: ['en', 'sv', 'nl'],
|
|
defaultLocale: 'en',
|
|
},
|
|
async rewrites() {
|
|
return {
|
|
beforeFiles: [
|
|
{
|
|
source: '/:locale/rewrite-files/:path*',
|
|
destination: '/:path*',
|
|
locale: false,
|
|
},
|
|
{
|
|
source: '/:locale/rewrite-api/:path*',
|
|
destination: '/api/:path*',
|
|
locale: false,
|
|
},
|
|
],
|
|
afterFiles: [],
|
|
fallback: [],
|
|
}
|
|
},
|
|
}
|