Hi there,
I am using branches for a new piece of functionality. As far as my understanding goes, I create a branch in contentstack. This allows me to control the content side of things independantly from another branch.
If I want to test the front end differences out, I create an alias pointing towards my branch. Then, I take that alias, and I put it in the Contentstack.Stack SDK interface like so:
const Stack = contentstack.Stack({
api_key: process.env.CONTENTSTACK_API_KEY,
delivery_token: process.env.CONTENTSTACK_DELIVERY_TOKEN,
environment: process.env.CONTENTSTACK_ENVIRONMENT,
region: process.env.CONTENTSTACK_REGION ? process.env.CONTENTSTACK_REGION : 'us',
branch: 'testalias'
});
Where testalias is the name of the alias I created. I am now getting an Access Denied error when trying to visit a page that is published on that branch. Any advice?
Error: {"error_message":"Access denied. You have insufficient permissions to perform operation on this branch 'testalias'.","error_code":901}
Best answer by nick.nguyen
View original