Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DNS issue #22

Open
davide-scalzo opened this issue Apr 27, 2016 · 1 comment
Open

DNS issue #22

davide-scalzo opened this issue Apr 27, 2016 · 1 comment

Comments

@davide-scalzo
Copy link

davide-scalzo commented Apr 27, 2016

Hi there,

thanks for the plugin :) I am trying it out, but while I can get it to work on localhost I can't get it to work on a hosted domain.

server DNS address could not be found

I use an env variable to set-up the base domain like so: base: process.env.DOMAIN || 'localhost'

Any idea how to solve this issue?

@myxxmikeyxx
Copy link

I don't know if you fixed this but I do this const site = 'website.com'; app.use(subdomain({ base: site, removeWWW: true }));

you could probably do it like this, but i haven't tested this
const site = process.env.DOMAIN || 'localhost'; app.use(subdomain({ base: site, removeWWW: true }));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants