mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 11:33:30 +01:00
feat: local and preview detection
This commit is contained in:
4
apps/website/src/util/env.ts
Normal file
4
apps/website/src/util/env.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export const ENV = {
|
||||
IS_LOCAL_DEV: process.env.VERCEL_ENV === 'development' || process.env.NEXT_PUBLIC_LOCAL_DEV === 'true',
|
||||
IS_PREVIEW: process.env.VERCEL_ENV === 'preview',
|
||||
};
|
||||
Reference in New Issue
Block a user