Skip to content

Commit f477273

Browse files
committed
refactor(website): ♻️ update main domain
1 parent 0da4500 commit f477273

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

website/adapters/deno/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default extendConfig(baseConfig, () => {
1515
denoServerAdapter({
1616
ssg: {
1717
include: ["/*"],
18-
origin: "https://qwik-date.deno.dev",
18+
origin: "https://qwik-date.dieco.dev",
1919
},
2020
}),
2121
],

website/src/routes/layout.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,15 @@ import { routeLoader$ } from '@builder.io/qwik-city'
33
import type { RequestHandler } from '@builder.io/qwik-city'
44
import { Toaster } from 'qwik-sonner'
55

6-
export const onGet: RequestHandler = async ({ cacheControl, redirect, url }) => {
7-
const {host} = url;
6+
export const onGet: RequestHandler = async ({
7+
cacheControl,
8+
redirect,
9+
url,
10+
}) => {
11+
const { host } = url
812
// redirect to custom domain
913
if (host === 'qwik-date.deno.dev') {
10-
throw redirect(301, "https://qwik-date.dieco.dev");
14+
throw redirect(301, 'https://qwik-date.dieco.dev')
1115
}
1216

1317
// Control caching for this request for best performance and to reduce hosting costs:

0 commit comments

Comments
 (0)