| 1 | import { NextConfig } from "next"; |
| 2 | |
| 3 | import { withContentCollections } |
| 4 | import createNextIntlPlugin from "next-intl/plugin |
| 5 | import { createIntlWatcher } |
| 6 | |
| 7 | const withIntlWatcher = createIntlWatcher |
| 8 | dictionaryPaths: ["./translations/en.json", |
| 9 | removeUnusedKeys: false, |
| 10 | sourceDirectories: ["./app", |
| 11 | }); |
| 12 | |
| 13 | const nextConfig: NextConfig |
| 14 | images: { |
| 15 | remotePatterns: [ |
| 16 | new URL("https://github.com/** |
| 17 | new URL("https://avatars.githubusercontent.com/** |
| 18 | new URL("https://repository-images.githubusercontent.com/** |
| 19 | new URL("https://voicelearn.tech/** |
| 20 | new URL("https://*.procrastinator.fyi/** |
| 21 | new URL("https://raw.githubusercontent.com/** |
| 22 | new URL("https://saturn.procrastinator.fyi/api/og?page=Saturn |
| 23 | ], |
| 24 | qualities: [100, 75] |
| 25 | }, |
| 26 | }; |
| 27 | |
| 28 | const withNextIntl = createNextIntlPlugin |
| 29 | |
| 30 | export default withContentCollections( |
| 31 | withIntlWatcher(withNextIntl(nextConfig |
| 32 | ); |