now-redirect's People
now-redirect's Issues
Problem setting-up
Hello, there must something I do not understand because I can not get this to work.
I would like to redirect all traffic from mydomain.com to www.mydomain.com.
So I go to my app folder and type
now-redirect www.mydomain.com
It deploys MY app on https://mydomain-gfhsgtwezq.now.sh
But it says:
Requests to https://mydomain-gfhsgtwezq.now.sh/* will be redirected to http://www.mydomain.com/*
and this is not the case! There is no redirect.
I think the problem is that Instead of deploying your small nodejs file that does the redirect, it is deploying my app (which is current folder). I am using [email protected] and it seems that it is ignoring the custom path :/
Am I doing something wrong ?
Only solution I have now is deploying my app and then aliasing it to both domain:
now alias https://mydomain-gfhsgtwezq.now.sh mydomain.com
now alias https://mydomain-gfhsgtwezq.now.sh www.mydomain.com
which is working.
now-redirect broken w/ now 8.2.2
This is a very useful tool, however it appears something between now-redirect
, now
, or node
has changed and the tool installed fresh is no longer working as expected.
I was able to work around this quickly by cloning locally and just deploying from the app/
directory directly, but I'm sure plenty of people will run into this issue and not know how to proceed.
In particular, in bin/now-redirect, where the child process is supposed to operate against the source's simple app/
directory, currently, the child now
process is executing against the current working directory. Now
then tries to deploy the current working directory instead of the desired app/
redirection deployment.
Mac OS Sierra v10.12.2
now --version
8.2.2
node --version
v8.40
Thank you!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.