Skip to content

Commit 9d1a647

Browse files
committed
fix
1 parent 458d621 commit 9d1a647

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/routes/robots[.]txt.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import { generateRobotsTxt } from "@forge42/seo-tools/robots"
22

3+
import { globalAppContext } from "~/server/context"
34
import { createDomain } from "~/utils/http"
45
import type { Route } from "./+types/robots[.]txt"
56

67
export async function loader({ request, context }: Route.LoaderArgs) {
7-
const { env } = context
8+
const { env } = context.get(globalAppContext)
89
const isProductionDeployment = env.APP_DEPLOYMENT_ENV === "production"
910
const domain = createDomain(request)
1011
const robotsTxt = generateRobotsTxt([

0 commit comments

Comments
 (0)