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
- https://expressjs.com/en/starter/basic-routing.html
- https://expressjs.com/en/guide/routing.html
- https://expressjs.com/en/api.html#res.redirect
- https://github.com/ForbesLindesay/deviate
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
Top comments (0)