Merged in chore/remove-unused-env-vars (pull request #2463)
chore: Remove unused env vars and feature toggles * Remove unused env vars and feature toggles Approved-by: Joakim Jäderberg
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
import { notFound } from "next/navigation"
|
||||
|
||||
import { env } from "@/env/server"
|
||||
|
||||
import { getLastUpdated, getSitemapIds } from "@/utils/sitemap"
|
||||
@@ -7,10 +5,6 @@ import { getLastUpdated, getSitemapIds } from "@/utils/sitemap"
|
||||
export const dynamic = "force-dynamic"
|
||||
|
||||
export async function GET() {
|
||||
if (env.NEW_SITE_LIVE_STATUS !== "ALL_LANGUAGES_LIVE") {
|
||||
return notFound()
|
||||
}
|
||||
|
||||
console.log(`[SITEMAP] Fetching sitemap`)
|
||||
|
||||
const lastUpdated = await getLastUpdated()
|
||||
|
||||
Reference in New Issue
Block a user