First consider $a > 1$ and then we can write $$f(x) = \frac{1}{(a - 1)^{1/x}}\cdot\frac{1}{x^{1/x}}\cdot(a^{x} - 1)^{1/x}$$ Now $(a - 1) > 0$ so $(a - 1)^{1/x} \to (a - 1)^{0} = 1$ as $x \to \infty$. Also $x^{1/x} = \exp((\log x)/x) \to \exp(0) = 1$ as $x \to \infty$. The last factor can be written $a(1 - (1/a^{x}))^{1/x}$ which tends to $a(1 - 0)^{0} = a$. So finally $f(x) \to a$ as $x \to \infty$.
If $a < 1$ then we write $$f(x) = \frac{1}{(1 - a)^{1/x}}\cdot\frac{1}{x^{1/x}}\cdot(1 - a^{x})^{1/x}$$ and the first two factors tend to $1$. Also since $0 < a < 1$ we see that $a^{x} \to 0$ and hence the third factor $(1 - a^{x})^{1/x} \to (1 - 0)^{0} = 1$. So in this case $f(x) \to 1$ as $x \to \infty$.