mirror of
https://github.com/UiO-Gaming/uiogaming.no.git
synced 2026-11-05 13:56:47 +01:00
Rerendering translations apparently caused issues with safari because apple fucking sucks. Thus we had to rewrite the logic to use prefix-based translations. This is the attempt at this. It might be a mega commit but it's how it ought to be...
20 lines
403 B
TypeScript
20 lines
403 B
TypeScript
import type { NextConfig } from "next"
|
|
import createNextIntlPlugin from "next-intl/plugin"
|
|
|
|
const withNextIntl = createNextIntlPlugin("./src/i18n.ts")
|
|
|
|
const nextConfig: NextConfig = {
|
|
images: {
|
|
remotePatterns: [
|
|
{
|
|
protocol: "https",
|
|
hostname: "cdn.sanity.io",
|
|
port: "",
|
|
pathname: "/images/**",
|
|
},
|
|
],
|
|
},
|
|
}
|
|
|
|
export default withNextIntl(nextConfig)
|