Skip to content

Commit

Permalink
fix(fe2): redirect away from fns page if not authenticated (#2372)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabis94 authored Jun 14, 2024
1 parent bf9e667 commit 6f6ecc0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1070,7 +1070,7 @@ jobs:
command: yarn build:public
- run:
name: Build FE2
command: yarn build:sourcemaps
command: NODE_ENV=production yarn build:sourcemaps
working_directory: 'packages/frontend-2'
- run:
name: Upload source maps
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend-2/pages/functions/[fid].vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const pageQuery = graphql(`
`)
definePageMeta({
middleware: ['require-valid-function']
middleware: ['auth', 'require-valid-function']
})
// const { activeUser } = useActiveUser()
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend-2/pages/functions/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import { usePaginatedQuery } from '~/lib/common/composables/graphql'
import { graphql } from '~/lib/common/generated/gql'
definePageMeta({
middleware: ['requires-automate-enabled']
middleware: ['auth', 'requires-automate-enabled']
})
const pageQuery = graphql(`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
</template>
<script setup lang="ts">
definePageMeta({
middleware: ['require-valid-automation']
middleware: ['auth', 'require-valid-automation']
})
</script>

0 comments on commit 6f6ecc0

Please sign in to comment.