Browse Source

Add 'location = /' -> 4001 to nginx dev conf

master
Rory Powell 5 years ago
parent
commit
a8a8e97840
  1. 4
      hosting/nginx.dev.conf.hbs
  2. 2
      packages/backend-core/src/cloud/accounts.js
  3. 2
      packages/backend-core/src/context/index.js
  4. 2
      packages/builder/src/components/common/bindings/BindingPanel.svelte

4
hosting/nginx.dev.conf.hbs

@ -43,6 +43,10 @@ http {
proxy_pass http://{{ address }}:4001; proxy_pass http://{{ address }}:4001;
} }
location = / {
proxy_pass http://{{ address }}:4001;
}
location /app_ { location /app_ {
proxy_pass http://{{ address }}:4001; proxy_pass http://{{ address }}:4001;
} }

2
packages/backend-core/src/cloud/accounts.js

@ -17,7 +17,7 @@ exports.getAccount = async email => {
const json = await response.json() const json = await response.json()
if (response.status !== 200) { 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] return json[0]

2
packages/backend-core/src/context/index.js

@ -121,7 +121,7 @@ exports.getTenantId = () => {
} }
const tenantId = cls.getFromContext(ContextKeys.TENANT_ID) const tenantId = cls.getFromContext(ContextKeys.TENANT_ID)
if (!tenantId) { if (!tenantId) {
throw Error("Tenant id not found") throw new Error("Tenant id not found")
} }
return tenantId return tenantId
} }

2
packages/builder/src/components/common/bindings/BindingPanel.svelte

@ -146,7 +146,7 @@
<div class="helper__description"> <div class="helper__description">
{@html helper.description} {@html helper.description}
</div> </div>
<pre class="helper__example">{helper.example || ''}</pre> <pre class="helper__example">{helper.example || ""}</pre>
</div> </div>
</li> </li>
{/each} {/each}

Loading…
Cancel
Save