logdna-agent will soon be deprecated and will cease to have support. Please refer to LogDNA Agent V2 for all future implementations. Note that when using glob patterns with index.js, you must enclose ...
This only works for static exports, SSR does not export assets that can be compressed ahead of time so you need to solve it with middleware. See this for more context and a partial solution.