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
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 }));
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?
The text was updated successfully, but these errors were encountered: