s="nx">from</span> <span class="s2">&quot;@pnp/nodejs&quot;</span><span class="p">;</span>

<span class="c1">// do this once per page load</span>
<span class="nx">sp</span><span class="p">.</span><span class="nx">setup</span><span class="p">({</span>
    <span class="nx">sp</span><span class="o">:</span> <span class="p">{</span>
        <span class="nx">fetchClientFactory</span><span class="o">:</span> <span class="p">()</span> <span class="o">=&gt;</span> <span class="p">{</span>
            <span class="k