Skip to content

Commit b8b8d7a

Browse files
committed
chore: remove rogue .env
1 parent 032fea1 commit b8b8d7a

5 files changed

Lines changed: 9 additions & 15 deletions

File tree

apps/docs/.env.example

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,9 @@ BUILD_LATEST=${BUILD_LATEST:-true}
1717
BUILD_REPO="git@github.com:NetLogo/docs.git"
1818
BUILD_BRANCH="main"
1919

20+
# We will enable it when it is planned
21+
# for release
22+
NUXT_PRIM_TOOLTIP_DISABLED=1
23+
2024
# Enable for Development
2125
# NUXT_DEV_TOOLS=true

packages/nuxt-core/.env

Lines changed: 0 additions & 12 deletions
This file was deleted.

packages/nuxt-core/.env.example

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,5 @@ PRODUCT_DISPLAY_NAME=
88
PRODUCT_BUILD_DATE=$(date +%Y-%m-%dT%H:%M:%SZ)
99
PRODUCT_WEBSITE="https://www.netlogo.org"
1010

11-
NUXT_PRIM_TOOLTIP_DISABLED=1
12-
1311
# Enable for Development
1412
# NUXT_DEV_TOOLS=true

packages/nuxt-core/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,7 @@ logs
1717
.DS_Store
1818
.fleet
1919
.idea
20+
21+
# Environment variables
22+
.env
23+
.env.*.local

packages/nuxt-core/layers/primitive-tooltip/app/components/PrimTooltip.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ const props = defineProps<Props>();
121121
const isNested = inject<boolean>("prim-tooltip-nested", false);
122122
provide("prim-tooltip-nested", true);
123123
124-
const isDisabledGlobally = process.env.NUXT_PRIM_TOOLTIP_DISABLED === "1";
124+
const isDisabledGlobally = process.env["NUXT_PRIM_TOOLTIP_DISABLED"] === "1";
125125
const isDisabled = inject<boolean>("prim-tooltip-disabled", isDisabledGlobally);
126126
127127
const { primitive } = isDisabled ? useNoPrimitive() : await usePrimitive({ name: props.name });

0 commit comments

Comments
 (0)