is there any replacement for Sitecore.Context.Database.Name in JSS..?

just trying to know the list of conteproperties are ac


By default, JSS route data contains the database name for the requested item, e.g. sitecore.route.databaseName.

Also, you may want to look into extending the Layout Service context data if you need the data outside of the route: https://jss.sitecore.com/docs/techniques/extending-layout-service/layoutservice-extending-context

  • Thank you Adam.. I can able to access the DB name using the below property sitecoreContext.route.databaseName.. also i tried extending the layout service context data, looks cool.. Dec 21 '18 at 3:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.