Skip to content

Commit

Permalink
Add 'location = /' -> 4001 to nginx dev conf
Browse files Browse the repository at this point in the history
  • Loading branch information
Rory-Powell committed Feb 18, 2022
1 parent daf8284 commit a8a8e97
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions hosting/nginx.dev.conf.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ http {
proxy_pass http://{{ address }}:4001;
}

location = / {
proxy_pass http://{{ address }}:4001;
}

location /app_ {
proxy_pass http://{{ address }}:4001;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/backend-core/src/cloud/accounts.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ exports.getAccount = async email => {
const json = await response.json()

if (response.status !== 200) {
throw Error(`Error getting account by email ${email}`, json)
throw new Error(`Error getting account by email ${email}`, json)
}

return json[0]
Expand Down
2 changes: 1 addition & 1 deletion packages/backend-core/src/context/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ exports.getTenantId = () => {
}
const tenantId = cls.getFromContext(ContextKeys.TENANT_ID)
if (!tenantId) {
throw Error("Tenant id not found")
throw new Error("Tenant id not found")
}
return tenantId
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
<div class="helper__description">
{@html helper.description}
</div>
<pre class="helper__example">{helper.example || ''}</pre>
<pre class="helper__example">{helper.example || ""}</pre>
</div>
</li>
{/each}
Expand Down

0 comments on commit a8a8e97

Please sign in to comment.