feat(SW-706): add Lokalise tooling and codemod

This commit is contained in:
Michael Zetterberg
2025-03-12 07:02:49 +01:00
parent 1c5b116ed8
commit e22fc1f3c8
26 changed files with 1478 additions and 130 deletions

View File

@@ -1,14 +1,14 @@
import { fileURLToPath } from "node:url"
import * as Sentry from "@sentry/nextjs"
import createJiti from "jiti"
import { fileURLToPath } from "url"
import { findMyBooking } from "./constants/routes/findMyBooking.js"
import { login, logout } from "./constants/routes/handleAuth.js"
import { myPages } from "./constants/routes/myPages.js"
import { myStay } from "./constants/routes/myStay.js"
const path = fileURLToPath(new URL(import.meta.url))
const jiti = createJiti(path)
const jiti = createJiti(fileURLToPath(import.meta.url))
jiti("./env/server")
jiti("./env/client")
@@ -33,6 +33,14 @@ const nextConfig = {
"*.scandichotels.com",
],
},
swcPlugins: [
[
"@formatjs/swc-plugin-experimental",
{
ast: true,
},
],
],
},
images: {
minimumCacheTTL: 2678400, // 31 days