-
Notifications
You must be signed in to change notification settings - Fork 189
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
Redirect fixed #2494
Redirect fixed #2494
Conversation
I'm confused about this vs https://github.com/Seneca-CDOT/telescope/pull/2493/files, which merged last night cc @drew5494. |
Yea, I noticed they did a similar thing. It didn't pull their changes for some reason when I was making mine, only showed them when I made a PR. I'm pretty sure it still broke because of the host variable. Shouldn't conflict at this point. |
If you want to build on that code, please rebase so we isolate your new changes. |
These lines were replaced by a more compact single line This is basically redundant, since that's what those lines did This fixes a different issue of 404 page on '/'. This + this fixes an issue when the build fails if you forgot to put an env. variable in env.local. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, your explanation helps me understand. Thanks for this.
Localhost is now consistent in API_HOST API_HOST is now in env.local Merged redirect logic Removed useless comment
Code changed based on review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks right, let's get a couple of people to test this locally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great catch, it feels right to just run yarn dev
and everything is working. No errors on my local.
One unrelated change I don't know if you can sneak it in this PR. Should we change the default server port to 1112? 1111 is used by npm run services:start posts
.
Why would you want to do this? Posts uses 5555 https://github.com/Seneca-CDOT/telescope/blob/master/config/env.production#L118. Can you say more about what you are trying to do? |
@humphd Oh wait, my bad, I was running |
Issue This PR Addresses
Type of Change
Description
Fixes issue where the root path was displaying wrong. Also fixes one where root is 404
No screenshots, since before the pages didn't work, and now they do.
Checklist