We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 458d621 commit 9d1a647Copy full SHA for 9d1a647
app/routes/robots[.]txt.ts
@@ -1,10 +1,11 @@
1
import { generateRobotsTxt } from "@forge42/seo-tools/robots"
2
3
+import { globalAppContext } from "~/server/context"
4
import { createDomain } from "~/utils/http"
5
import type { Route } from "./+types/robots[.]txt"
6
7
export async function loader({ request, context }: Route.LoaderArgs) {
- const { env } = context
8
+ const { env } = context.get(globalAppContext)
9
const isProductionDeployment = env.APP_DEPLOYMENT_ENV === "production"
10
const domain = createDomain(request)
11
const robotsTxt = generateRobotsTxt([
0 commit comments