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 2bd5024 commit 4afdcc0Copy full SHA for 4afdcc0
‎website/src/routes/layout.tsx‎
@@ -4,7 +4,17 @@ import type { RequestHandler } from "@builder.io/qwik-city";
4
5
import styles from "./styles.css?inline";
6
7
-export const onGet: RequestHandler = async ({ cacheControl }) => {
+export const onGet: RequestHandler = async ({
8
+ cacheControl,
9
+ url,
10
+ redirect,
11
+}) => {
12
+ const { host } = url;
13
+
14
+ if (host === "qwik-sonner.deno.dev" || host === "localhost:5173") {
15
+ throw redirect(301, "https://qwik-sonner.dieco.dev");
16
+ }
17
18
cacheControl({
19
staleWhileRevalidate: 60 * 60 * 24 * 7,
20
maxAge: 5,
0 commit comments