Base solution for your next web application

Activities of "paradoxit"

I have painstakingly upgraded to 3.3.0 and cannot get subdomain tenant detection working. No matter what sub-domain I have it just logs me in as ./admin.

I could resolve the issue with the previous version by updating ExtractTenancyNameFromUrl but this method is no longer used in the new version.

My questions are;

  • What should I have in the following app.config.json and appsettings.json (WebSiteRootAddress). I have tried numerous combinations of domains.
  • Where is tenant detection now occurring.

Thanks in advance,

David HAwkins

cangunaydin that worked for the logout null issue thanks! :)

I'm having a number of issues with tenant sub-domains in the previous Angular2 release.

Here is my appconfig.json

{
    "remoteServiceBaseUrl": "https://{TENANCY_NAME}.myapidomain.co.uk",
    "appBaseUrl": "https://{TENANCY_NAME}.mydomain.co.uk"
}

Issue 1

  • When I click logout I get redirected to <a class="postlink" href="https://null.mydomain.co.uk">https://null.mydomain.co.uk</a> Can you please advise where the code is that determines this URL so I can fix it.

Issue 2

  • Tenant detection is not working in WebUrlService (ExtractTenancyNameFromUrl). I can manually return a tenant name and this works for each tenant.

My appsettings.json has

"WebSiteRootAddress": "https://{TENANCY_NAME}.mydomain.co.uk/"

Any help or advice on resolving this will be much appreciated.

Kind regards,

David Hawkins

Thanks this is exactly what I was looking for!

It appears that the favicon is not getting copied into the dist folder on ng build --prod

Is there a way to include this file each time?

When I deploy my project to Azure my favicon does not load. In the network the response is the homepage and not the icon data.

Can someone please advise what changes I need in the web.config to serve the file?

Thanks

David

Currently I have two domains

Angular2 -> {tenant}.domainA.com API -> {tenant}.api.domainA.com

It appears the the sub-domain determines the tenant on the API side, however is it possible to have the API hosted at api.domainA.com and determine the tenant based on the domain the request came from (similar to the allow on the CORS).

Otherwise I need to purchase two * SSL certificates.

Any advice on how to achieve this would be much appreciated.

Thanks, David Hawkins

Thanks, we tried this but not much of a performance gain.

On average compiles are 30s long, how long is this taking for other people? What can be done to get this down?

Thanks,

David

For dev only, how do I speed up Angular 2 compilation? Currently it's taking 20-30 seconds to refresh any changes.

In dev I don't really care about compressing the content or running lints.

Any advice would be great!

Thanks, David

Thank you

Showing 21 to 30 of 40 entries