Skip to content

Commit

Permalink
chore: removed throwing error
Browse files Browse the repository at this point in the history
  • Loading branch information
onmax committed Nov 18, 2024
1 parent e18f1fb commit 55d0930
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/pkg.new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ jobs:
node-version: 20
cache: pnpm

- name: Set .env file
run: echo "NUXT_PUBLIC_NIMIQ_NETWORK=test-albatross" > .env

- name: Install dependencies
run: pnpm install

Expand Down
2 changes: 1 addition & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default defineNuxtConfig({
const nimiqNetwork = process.env.NUXT_PUBLIC_NIMIQ_NETWORK as string
const validNimiqNetworks = ['main-albatross', 'test-albatross']
if (!validNimiqNetworks.includes(nimiqNetwork)) {
throw new Error(`Invalid nimiqNetwork: ${nimiqNetwork}. Please make sure it is one of: ${validNimiqNetworks.join(', ')}`)
consola.warn(`Invalid nimiqNetwork: ${nimiqNetwork}. Please make sure it is one of: ${validNimiqNetworks.join(', ')}`)
}
},
},
Expand Down

0 comments on commit 55d0930

Please sign in to comment.