Removed debug statement
This commit is contained in:
@@ -1,7 +1,5 @@
|
|||||||
export default function subdomainRedirect(options) {
|
export default function subdomainRedirect(options) {
|
||||||
return async function subdomainRedirectMiddleware(ctx, next) {
|
return async function subdomainRedirectMiddleware(ctx, next) {
|
||||||
console.log(ctx.headers);
|
|
||||||
|
|
||||||
if (ctx.headers.host === 'beautifulatlas.com') {
|
if (ctx.headers.host === 'beautifulatlas.com') {
|
||||||
ctx.redirect('https://www.' + ctx.headers.host + ctx.path);
|
ctx.redirect('https://www.' + ctx.headers.host + ctx.path);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user