forked from CardSorter/CardSorterClient
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.ts
More file actions
23 lines (20 loc) · 726 Bytes
/
next.config.ts
File metadata and controls
23 lines (20 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import type { NextConfig } from 'next'
import createNextIntlPlugin from "next-intl/plugin";
const withNextIntl = createNextIntlPlugin();
const nextConfig: NextConfig = {
distDir: 'build', // Changes the build output directory to `build`
basePath: '/card-sorter',
async redirects() {
return [
// Redirect no path page to the english locale (note, urls with paths that don't include locales will be handled
// by the Nextjs middleware
{
source: '/',
destination: '/en',
permanent: true,
},
]
},
// output: 'standalone', // https://nextjs.org/docs/pages/api-reference/config/next-config-js/output
}
export default withNextIntl(nextConfig)