🔧 Use VITE_ prefix for all env variables

This commit is contained in:
RaviAnand Mohabir 2021-05-26 13:43:49 +02:00
parent c717dbdf6a
commit 97c285208f
2 changed files with 2 additions and 2 deletions

2
app/src/global.d.ts vendored
View File

@ -11,5 +11,5 @@ interface ImportMetaEnv {
VITE_TWITTER_API_SECRET: string;
VITE_REDDIT_API_KEY: string;
VITE_REDDIT_API_SECRET: string;
JWT_SECRET_KEY: string;
VITE_JWT_SECRET_KEY: string;
}

View File

@ -62,5 +62,5 @@ export const appAuth = new SvelteKitAuth({
return token;
},
},
jwtSecret: import.meta.env.JWT_SECRET_KEY,
jwtSecret: import.meta.env.VITE_JWT_SECRET_KEY,
});