Skip to content

Commit

Permalink
(fix): 404 issues in my application and settings (#1164)
Browse files Browse the repository at this point in the history
  • Loading branch information
emilyjablonski committed Apr 23, 2021
1 parent 36de3ae commit c29d46f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 60 deletions.
22 changes: 11 additions & 11 deletions sites/public/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,16 @@ module.exports = withCSS(
"/applications/contact/name": {
page: "/applications/contact/name",
},
"/disclaimer": { page: "/disclaimer" },
"/privacy": { page: "/privacy" },
"/sign-in": { page: "/sign-in" },
"/forgot-password": { page: "/forgot-password" },
"/reset-password": { page: "/reset-password" },
"/create-account": { page: "/create-account" },
"/account/applications": { page: "/account/applications" },
"/account/application": { page: "/account/application" },
"/account/edit": { page: "/account/edit" },
"/account/dashboard": { page: "/account/dashboard" },
})
const languages = ["es", "zh", "vi"] // add new language codes here
const languagePaths = {}
Expand All @@ -176,17 +186,7 @@ module.exports = withCSS(
})

// combine the map of all various types of page paths
return Object.assign({}, languagePaths, {
"/disclaimer": { page: "/disclaimer" },
"/privacy": { page: "/privacy" },
"/sign-in": { page: "/sign-in" },
"/forgot-password": { page: "/forgot-password" },
"/reset-password": { page: "/reset-password" },
"/create-account": { page: "/create-account" },
"/account/applications": { page: "/account/applications" },
"/account/dashboard": { page: "/account/dashboard" },
"/account/settings": { page: "/account/settings" },
})
return languagePaths
},
})
)
Expand Down
49 changes: 0 additions & 49 deletions sites/public/pages/account/settings.tsx

This file was deleted.

0 comments on commit c29d46f

Please sign in to comment.