The woman took her to Christchurch Hospital with the assistance of a neighbour.
But Aaliyah died in intensive care about 8.30pm on Wednesday with her parents, Anjani and Dev by her bedside.
Today, the woman accused of murder appeared in the dock from custody wearing a black hoodie.
Members of the Christchurch Fijian-Indian community were in the public gallery.
Defence counsel Paul Johnson applied for bail - a move not opposed by police - so he could obtain instructions and get disclosure from police.
Mr Johnson argued that it should be granted on the basis that her family, including parents and siblings in Fiji, did not know she had been charged.
She was five months pregnant and lived with her husband, Mr Johnson said.
Police prosecutor Glenn Henderson agreed with those reasons, and added that the woman, with conditions, would not be a flight risk or at risk of failing to appear at her next court date.
Judge Garland remanded the woman on bail to February 5 at the High Court in Christchurch.
He granted bail on the conditions that she reside at a city address, that she surrender her passport to police, not apply for any travel documents, and given that it was a "very serious" charge, the judge said she should also be subject to a 24-hour condition. She can only leave home to attend court, meet with her lawyer, or go for medical appointments - all with her husband.
Judge Garland also granted interim name suppression to ensure fair trial rights, but said it would need to be fully argued at her next appearance.
Applications by the media to photograph the woman were rejected by the judge.
"Baby Aaliyah's death is an utter tragedy for the family," said Detective Senior Sergeant Scott Anderson, who led the investigation.
"Her death has also affected the wider community and the team investigating this incident.
"Canterbury police will continue to support Aaliyah's family through the court process."
No other charges were likely "at this point in time" and police were not seeking anyone else in relation to the death.
"Any death is difficult to deal with but I think it's particularly difficult to deal with when someone of that age is involved," Mr Anderson said.
The age of the baby and the injuries involved made it a "complex" investigation, he added.
Aaliyah's family was "very upset", he said.
The alleged killer walked out of court with hands shielding her face, and was bundled into a waiting car.
Police investigations are continuing.
Aaliyah's family posted a tribute on the website Heaven Address on Friday.
"You grew up way too fast, before we knew it, it was your first birthday, a whole year had passed. You began to walk, talk, laugh and smile. You became the smartest girl I knew, your momma always teaching you new tricks to do," the tribute said.
"I never imagined what life would be without you here, so why did life have to play out this way? Early morning of January 7, 2014 we lost you.
"Without you here none of us know what to do. You were taken from our lives way too fast. Come back please, our little Munni we miss you. You were our little miracle, but now you are our angel in the sky watching over each one of us.
"Remember I love you, for forever and a day and nothing will ever change that."