build and deploy Spartacus packages locally:
npx ts-node ./tools/schematics/testing.ts in the SPA root folder`
create new app npx @angular/cli@17 new my-app --standalone=false --style=scss --routing=false
go to the project's directory and install Spartacus from local packages:
npx @angular/cli@17 add @spartacus/schematics@latest --baseUrl="https://40.76.109.9:9002"
adjust spartacus config in spartacus-configuration.module.ts
build and deploy Spartacus packages locally keeping adjustments in product-search.effect.ts:
npx ts-node ./tools/schematics/testing.ts in the SPA root folder`
create new app npx @angular/cli@17 new my-app --standalone=false --style=scss --routing=false
go to the project's directory and install Spartacus from local packages:
npx @angular/cli@17 add @spartacus/schematics@latest --baseUrl="https://40.76.109.9:9002"
adjust spartacus config in spartacus-configuration.module.ts
This |PR contains an implementation of a toggle for strict HTTP and NgRx error handling in SSR.
QA steps (examples):
strict HTTP error handling in storefrontapp
default-occ-product-config.ts
and modify the defaultproductSearch
endpointnpm run dev:ssr
npm run start
logger.service.ts
is not present in the browser's consolestrict HTTP error handling in fresh SPA app
npx ts-node ./tools/schematics/testing.ts
in the SPA root folder`npx @angular/cli@17 new my-app --standalone=false --style=scss --routing=false
npx @angular/cli@17 add @spartacus/schematics@latest --baseUrl="https://40.76.109.9:9002"
spartacus-configuration.module.ts
adjust
server.ts
file:npm run build && NODE_TLS_REJECT_UNAUTHORIZED=0 run serve:ssr:my-app
strict NgRx error handling in storefrontapp
go to
product-search.effect.ts
and modifysearchProducts$
effect:run
npm run dev:ssr
go to http://localhost:4200/electronics-spa/en/USD/Brands/all/c/brands and verify if the error log is visible in the server console and not present in the browser's console
kill the SSR app and run
npm run start
go to http://localhost:4200/electronics-spa/en/USD/Brands/all/c/brands and verify if the error log with
Test Error
message fromlogger.service.ts
is not present in the browser's consolestrict NgRx error handling in fresh SPA app
product-search.effect.ts
:npx ts-node ./tools/schematics/testing.ts
in the SPA root folder`npx @angular/cli@17 new my-app --standalone=false --style=scss --routing=false
npx @angular/cli@17 add @spartacus/schematics@latest --baseUrl="https://40.76.109.9:9002"
spartacus-configuration.module.ts
adjust
server.ts
file:npm run build && NODE_TLS_REJECT_UNAUTHORIZED=0 run serve:ssr:my-app
closes CXSPA-7197