DEV Community

Clive Da
Clive Da

Posted on

zeit node express redirect example Q&A

or how a SIMPLE project snowballed into a major headache that kept me up past midnight

i just wanted to write a single line of node to redirect a URL to URL/a-random-sub-page

first i read these docs

Q1
why would i even need deviate ?
A1
HACK lets just forget about deviate

Q2
why does ZEIT NOW display server.js instead of running it ?
A2
HACK lets just redirect the redirect to ZEIT NOW URL/server.js ie
https://rfugcoinorg.osde8info.now.sh/server.js

would love to have better / correct answers to A1 and A2

code is here

rfugcoin.org

rfugcoin.org




Top comments (0)