Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployed app on heroku delay loaded css #5

Closed
salahatwa opened this issue Apr 22, 2020 · 3 comments
Closed

Deployed app on heroku delay loaded css #5

salahatwa opened this issue Apr 22, 2020 · 3 comments

Comments

@salahatwa
Copy link

Dear gentle ,

i deployed your app on heroku but i see css delayed on load

kindly find deployed URL
https://tyolk.herokuapp.com/

image

@ganatan
Copy link
Owner

ganatan commented Apr 26, 2020

@salahatwa

Hi,
this type of error appears with an incorrect basehref.

For example
with the repo

If I use the script ng build
I serve the application like this
https://your-domain.com

If I use the script ng build --base-href=/angular-example-starter/
I serve the application like this
https://your-domain.com/angular-example-starter

With the repo

I have two scripts
1/ "build:ssr": "ng build --prod && ng run angular-starter:server:production",
2/ "build-demo:ssr": "ng build --prod --base-href=/angular-webapp/ && ng run angular-starter:server:production",

I serve the application like this
1/ https://angular.ganatan.com
2/ https://demo.ganatan.com/angular-webapp/

I don't know Heroku but you have to adapt your baseref

I hope it will help

@salahatwa
Copy link
Author

Thanks alot for your support , you are very helpful

@ganatan
Copy link
Owner

ganatan commented Apr 27, 2020

My pleasure!
Mi casa es su casa

And if you like you can star

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants