How to inject server and public runtime env from next/config to Vitest on each project #555
Unanswered
harrytran998
asked this question in
Q&A
Replies: 1 comment 1 reply
-
You can use aliases or inline plugin: #498 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am interested in the project and decide to use it in my projects.
With the normal functions, it works perfectly! But with the function used or related with the ENV from
next/config
--> Not work.Example
Before, we use Jest setup file like this
Hope anyone can help me with this! Besides, I don't see any guide to transforming asset files as the jest do -- hope anyone can help me <3.
Beta Was this translation helpful? Give feedback.
All reactions