You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello - given an entry point like the below index.ts and hosting on deno deploy, how could I redirect www to the apex, for instance www.mydomain.com to mydomain.com? Is it possible with a single entrypoint? Currently I have the apex only setup, and DNS A and AAAA records set up just for that, not yet www.
I assume I'd need to add A and AAAA records in my dns for the www subdomain (correct?) but, can someone say how I need to change my index.ts to do the redirect to the apex, if that's possible with oak?
Another option is simply to make another deno deploy project, using say index2.ts, and pointing at a different index.html file, which does the redirect on load.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello - given an entry point like the below
index.ts
and hosting on deno deploy, how could I redirect www to the apex, for instancewww.mydomain.com
tomydomain.com
? Is it possible with a single entrypoint? Currently I have the apex only setup, and DNS A and AAAA records set up just for that, not yet www.I assume I'd need to add A and AAAA records in my dns for the www subdomain (correct?) but, can someone say how I need to change my
index.ts
to do the redirect to the apex, if that's possible with oak?Another option is simply to make another deno deploy project, using say
index2.ts
, and pointing at a differentindex.html
file, which does the redirect on load.Appreciate any advice!
Beta Was this translation helpful? Give feedback.
All reactions