Skip to content

Commit

Permalink
Merge pull request #89 from bywhitebird/hotfix/fix-alakazam-build
Browse files Browse the repository at this point in the history
Hotfix/fix alakazam build
  • Loading branch information
arthur-fontaine committed Feb 21, 2024
2 parents a760405 + 8b6e8a4 commit 02f5f7b
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion apps/alakazam/src/features/auth/pages/login.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import Button from "@whitebird/ui/vue/button"
import Button from "@whitebird/ui/vue/Button.vue"
const { loggedIn, user, session, login, logout } = useAuth()
</script>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import Button from "@whitebird/ui/vue/button"
import Button from "@whitebird/ui/vue/Button.vue"
import { flex, grid } from "~/styled-system/patterns";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import TextInput from '@whitebird/ui/vue/TextInput'
import Button from '@whitebird/ui/vue/Button'
import TextInput from '@whitebird/ui/vue/TextInput.vue'
import Button from '@whitebird/ui/vue/Button.vue'
import { flex, grid } from '~/styled-system/patterns';
Expand Down
6 changes: 3 additions & 3 deletions apps/alakazam/src/features/project/pages/project.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
import Select from '@whitebird/ui/vue/Select'
import Button from '@whitebird/ui/vue/Button'
import TextInput from '@whitebird/ui/vue/TextInput'
import Select from '@whitebird/ui/vue/Select.vue'
import Button from '@whitebird/ui/vue/Button.vue'
import TextInput from '@whitebird/ui/vue/TextInput.vue'
import { flex } from '~/styled-system/patterns'
Expand Down
7 changes: 6 additions & 1 deletion apps/alakazam/src/modules/ngrok.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ export default defineNuxtModule({
addr: nuxt.options.devServer.port,
...resolvedOptions,
}
const url = await ngrok.connect(ngrokOptions)
const url = await ngrok.connect(ngrokOptions).catch((error: Error) => error)

if (url instanceof Error) {
console.error('ngrok error:', url)
return
}

nuxt.options.runtimeConfig[CONFIG_KEY] = {
url,
Expand Down

0 comments on commit 02f5f7b

Please sign in to comment.