File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff 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 ] ,
Original file line number Diff line number Diff line change @@ -3,11 +3,15 @@ import { routeLoader$ } from '@builder.io/qwik-city'
33import type { RequestHandler } from '@builder.io/qwik-city'
44import { 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:
You can’t perform that action at this time.
0 commit comments