diff --git a/static/functions/_middleware.js b/static/functions/_middleware.js index 3573a99..90efe51 100644 --- a/static/functions/_middleware.js +++ b/static/functions/_middleware.js @@ -4,7 +4,7 @@ async function handle_keys_request(context) { // If the domain is `keys.ewpratten.com`, redirect to `ewpratten.com/keys/...` if (url.hostname == 'keys.ewpratten.com') { - url.domain = 'ewpratten.com'; + url.hostname = 'ewpratten.com'; // If there was no path set, return the SSH keys if (url.pathname == '/') {