diff --git a/.env.example b/.env.example index 66f1fd0..78a7179 100644 --- a/.env.example +++ b/.env.example @@ -1,2 +1,4 @@ -# For emoji board -DATABASE_URL='mysql://...' +# For emoji board and blog post views +REDIS_REST_API_TOKEN="...=" +REDIS_REST_API_URL="..." +VERCEL_ENV="development" diff --git a/.gitignore b/.gitignore index 52af028..d1cc812 100644 --- a/.gitignore +++ b/.gitignore @@ -36,4 +36,4 @@ yarn-error.log* .vercel # contentlayer -.contentlayer \ No newline at end of file +.contentlayer diff --git a/src/lib/database/utils.ts b/src/lib/database/utils.ts index 3685866..1019e94 100644 --- a/src/lib/database/utils.ts +++ b/src/lib/database/utils.ts @@ -13,7 +13,7 @@ export function getEmojiKey(emojiName: EmojiName) { } function getEnvStorageKey(key: string) { - const env = process.env.NODE_ENV; + const env = process.env.VERCEL_ENV; const envPrefix = env === 'production' ? 'production' : 'staging'; return `${envPrefix}:${key}`;