Fix Staging server 404 error #22
Labels
No Label
Bug
Component
Config
Good First Issue
Low-Priority
Page
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: www/cs-2022-class-profile#22
Loading…
Reference in New Issue
No description provided.
Delete Branch "shahanneda/fix-404-page"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Previously when clicking a link such as https://main-csc-class-profile-staging-snedadah.k8s.csclub.cloud/playground it would give a 404 error since those links do not have the
.html
appended to them, this pr adds an nginx config to address this issue.https://shahanneda-fix-404-page-csc-class-profile-staging-snedadah.k8s.csclub.cloud/playground
I'm not 100% sure what's happening here, but it seems to be working, so let's merge it and fix it later if things are broken. 😆
https://git.csclub.uwaterloo.ca/www/www-new/src/branch/main/next.config.js#L7
if you can add this in this repos next config then that should fox the error
Good catch, thanks for this! It still doesnt fully solve the problem since the ngix server needs the ".html" appened to it if we dont give it a config, so we still need to have the ngix config.