This is an exercise in the book by Titchmarsh, 'the theory of functions', page 242.
The answer is $\frac{1}{2}\sqrt{\pi /(1-x )} $.
How to prove it?
It is a little bit surprising to me. The function $1/\sqrt{1-x} $ has a quite different Taylor expansion around $x= 0 $.
This is a Theta function. See https://en.wikipedia.org/wiki/Theta_function.
A search for "theta function asymptotics" comes up with this, titled "Asymptotics of the q-theta function", among the first hits:
www.ucs.louisiana.edu/~xxw6637/papers/CMA2009.pdf
This is the main result:
For $0 < q < 1$ and $x \in \mathbb{C}$, define $\Theta_q(x) =\sum_{n=-\infty}^{\infty} q^{k^2}x^k $, so $f(x) =(1+\Theta_x(1))/2 $.
Then, as $q \to 1^-$, $\Theta_q(x) \sim \sqrt{\dfrac{\pi}{-\ln(q)}}\exp\left(\dfrac{(\ln x)^2}{-4\ln(q)}\right) $.
Setting $x = 1$, this becomes $\Theta_q(1) \sim \sqrt{\dfrac{\pi}{-\ln(q)}} $.
If $q = 1-z$, $\Theta_{1-z}(1) \sim \sqrt{\dfrac{\pi}{-\ln(1-z)}} \sim \sqrt{\dfrac{\pi}{z}} = \sqrt{\dfrac{\pi}{1-q}} $.
Therefore
$\begin{array}\\ f(x) &=(1+\Theta_x(1))/2\\ &\sim(1+\sqrt{\dfrac{\pi}{1-x}})/2\\ &\sim\frac12\sqrt{\dfrac{\pi}{1-x}} \qquad\text{as } x \to 1\\ \end{array} $