Skip to content

Commit

Permalink
squash! work around SSL error in production
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdulrhmnGhanem committed Nov 16, 2022
1 parent f71cd41 commit 25f2ecd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
10 changes: 7 additions & 3 deletions frontend/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,13 @@ module.exports = async phase => {
},
async redirects() {
const sslWorkaround = url => {
url = new URL(url)
url.protocol = 'http:'
return url.toString().slice(0, -1) // remove the trailing slash
try {
url = new URL(url)
url.protocol = 'http:'
return url.toString().slice(0, -1) // remove the trailing slash
} catch (e) {
return url
}
}
// we use "_" as the project name when there is only one project but we
// don't want it to appear in the URL of the project page
Expand Down

This file was deleted.

0 comments on commit 25f2ecd

Please sign in to comment.