Results 4 comments of ksmi

Same issue: NextCloud: 26.0.1 (Docker) PreviewGenerator: 5.2.4

Adding the following configuration helped me: ```typescript source: { define: { ...env, // previously defined 'process.env': {}, 'import.meta.env': {}, }, } ``` With this setup: ```typescript import.meta.env.SOME_VAR // undefined process.env.SOME_VAR...