fix(fe2): redirect away from fns page if not authenticated (#2372)
This commit is contained in:
committed by
GitHub
parent
bf9e6673a5
commit
6f6ecc0f7b
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user