Skip to content

Commit

Permalink
add nuxt
Browse files Browse the repository at this point in the history
  • Loading branch information
stopachka committed Dec 20, 2024
1 parent b19f219 commit 5136848
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/packages/cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ const potentialEnvs = {
svelte: "PUBLIC_INSTANT_APP_ID",
vite: "VITE_INSTANT_APP_ID",
expo: "EXPO_PUBLIC_INSTANT_APP_ID",
nuxt: "NUXT_PUBLIC_INSTANT_APP_ID",
};

async function detectEnvType({ pkgDir }) {
Expand All @@ -70,6 +71,9 @@ async function detectEnvType({ pkgDir }) {
if (packageJSON.dependencies?.expo) {
return "expo";
}
if (packageJSON.dependencies?.nuxt) {
return "nuxt";
}
return "catchall";
}

Expand Down
1 change: 1 addition & 0 deletions client/www/pages/docs/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ As a convenience, apart from `INSTANT_APP_ID`, we also check for:
- `NEXT_PUBLIC_INSTANT_APP_ID` for next apps,
- `PUBLIC_INSTANT_APP_ID` for svelte apps,
- `VITE_INSTANT_APP_ID` for vite apps
- `NUXT_PUBLIC_INSTANT_APP_ID` for nuxt apps
- `EXPO_PUBLIC_INSTANT_APP_ID` for expo apps

## Authenticating in CI
Expand Down

0 comments on commit 5136848

Please sign in to comment.