The documentation is hard to find, but the solution ain’t so hard in itself.
yarn add ./src/lib/gsap/gsap-bonus.tgz
Voila 💩
The documentation is hard to find, but the solution ain’t so hard in itself.
yarn add ./src/lib/gsap/gsap-bonus.tgz
Voila 💩
In the context of Sanity CMS, this only applies to the studio
or cms
folder.
You’ll need to create a vite.end.ts
in the root of your studio
folder with the following code:
/// <reference types="vite/client" />
interface ImportMetaEnv {
readonly VITE_APP_TITLE: string;
// more env variables...
}
interface ImportMeta {
readonly env: ImportMetaEnv;
}
See full instructions here:
https://vitejs.dev/guide/env-and-mode#intellisense-for-typescript