fix(fe2): redirect away from fns page if not authenticated (#2372)

This commit is contained in:
Kristaps Fabians Geikins
2024-06-14 14:24:16 +03:00
committed by GitHub
parent bf9e6673a5
commit 6f6ecc0f7b
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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
@@ -58,7 +58,7 @@ const pageQuery = graphql(`
`)
definePageMeta({
middleware: ['require-valid-function']
middleware: ['auth', 'require-valid-function']
})
// const { activeUser } = useActiveUser()
@@ -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(`
@@ -3,6 +3,6 @@
</template>
<script setup lang="ts">
definePageMeta({
middleware: ['require-valid-automation']
middleware: ['auth', 'require-valid-automation']
})
</script>