cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Contents are not coming in Spartacus store front

0 Likes
1,777

I am trying to setup Spartacus store in my local using commerce cloud 1905, npm 1.4.3, node v12.14.1 and Angular cli.

All the setups are done and on hitting the url "localhost:4002" I am getting an empty page in my browser.No errors in the logs also.

Please note I am not using yarn. Can you please help me

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member624092
Participant
0 Likes

Make sure you are configured your app by providing a baseUrl in your app.modules.ts. Here is an example using our demo server:

@NgModule({
  declarations: [AppComponent],
  imports: [
...
    B2cStorefrontModule.withConfig({
      backend: {
        occ: {
          baseUrl:
            'https://storefront.c39j2-walkersde1-d4-public.model-t.cc.commerce.ondemand.com',
        },
      },
      context: {
        urlParameters: ['baseSite', 'language', 'currency'],
        baseSite: ['electronics-spa'],
      },
....

see more : Documentation