1/**
2 * Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. This is especially useful
3 * for Docker builds.
4 */
5
6/** @type {import("next").NextConfig} */
7const config = {
8 reactStrictMode: true,
9
10 /**
11 * If you are using `appDir` then you must comment the below `i18n` config out.
12 *
13 * @see https://github.com/vercel/next.js/issues/41980
14 */
15 images: {
16 domains: ['image.tmdb.org', 'covers.openlibrary.org'],
17 },
18 rewrites: async () => {
19 return [
20 {
21 source: '/@:username',
22 destination: '/users/:username',
23 },
24 {
25 source: '/@:username/lists/:listId',
26 destination: '/users/:username/lists/:listId',
27 },
28 ];
29 },
30};
31
32module.exports = config;