scullyio / scully

The Static Site Generator for Angular apps
https://scully.io/
MIT License
2.56k stars 257 forks source link

scully useScullyTransferState no provide data on PROD #1663

Closed AlonsoK28 closed 1 year ago

AlonsoK28 commented 1 year ago

🐞 Bug report

Description

I had implemented useScullyTransferState on my app but data.json is not provided on request

🔬 Minimal Reproduction

also data.json is generated correctly with my API information togheter index.html

Captura de pantalla 2023-05-12 a la(s) 20 54 36

when I visit my app hosted into netlify (https://main--amzmation-ssr-1.netlify.app/) to the route "/" is working well and the response of data.json is well done

Captura de pantalla 2023-05-12 a la(s) 20 56 42

But if try to access using a department URL https://main--amzmation-ssr-1.netlify.app/pcs-y-accesorios the response is empty and the data.json file never is requested

Captura de pantalla 2023-05-12 a la(s) 20 58 39

💻Your Environment

Angular Version:




Angular: 14.2.12
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router, service-worker

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1402.10
@angular-devkit/build-angular   14.2.10
@angular-devkit/core            14.2.10
@angular-devkit/schematics      14.2.10
@angular/cli                    14.2.10
@schematics/angular             14.2.10
rxjs                            7.8.0
typescript                      4.8.4

Scully Version:





    "@scullyio/init": "^2.1.41",
    "@scullyio/ng-lib": "^2.1.0",
    "@scullyio/scully": "^2.1.0",
    "@scullyio/scully-plugin-puppeteer": "^2.1.0",

🔥 Exception or Error

No exception error specifically from scully, the error is displaying on my app because the data source is empty




AlonsoK28 commented 1 year ago

any advice about this issue ?

in this case for my department called as "pcs-y-accesorios" the data.json file is available at https://main--amzmation-ssr-1.netlify.app/pcs-y-accesorios/data.json but never is requested

AlonsoK28 commented 1 year ago

was an error on my code

stateTransfer is working very well