Separated laravel app to its own folder (#540)
This commit is contained in:
@@ -1,13 +1,8 @@
|
||||
NUXT_LOG_LEVEL=
|
||||
NUXT_PUBLIC_APP_URL=/
|
||||
NUXT_PUBLIC_API_BASE=/api
|
||||
NUXT_PRIVATE_API_BASE=http://ingress/api
|
||||
NUXT_PUBLIC_AI_FEATURES_ENABLED=false
|
||||
NUXT_PUBLIC_AMPLITUDE_CODE=
|
||||
NUXT_PUBLIC_CRISP_WEBSITE_ID=
|
||||
NUXT_PUBLIC_CUSTOM_DOMAINS_ENABLED=
|
||||
NUXT_PUBLIC_ENV=local
|
||||
NUXT_PUBLIC_ENV=dev
|
||||
NUXT_PUBLIC_GOOGLE_ANALYTICS_CODE=
|
||||
NUXT_PUBLIC_H_CAPTCHA_SITE_KEY=
|
||||
NUXT_PUBLIC_PAID_PLANS_ENABLED=
|
||||
NUXT_PUBLIC_S3_ENABLED=false
|
||||
15
client/middleware/self-hosted-credentials.js
vendored
15
client/middleware/self-hosted-credentials.js
vendored
@@ -1,9 +1,10 @@
|
||||
export default defineNuxtRouteMiddleware(() => {
|
||||
const authStore = useAuthStore()
|
||||
const runtimeConfig = useRuntimeConfig()
|
||||
if (runtimeConfig.public?.selfHosted) {
|
||||
if (authStore.check && authStore.user?.email === 'admin@opnform.com') {
|
||||
return navigateTo({ name: "update-credentials" })
|
||||
}
|
||||
const authStore = useAuthStore()
|
||||
const runtimeConfig = useRuntimeConfig()
|
||||
|
||||
if (runtimeConfig.public?.selfHosted) {
|
||||
if (authStore.check && authStore.user?.email === 'admin@opnform.com') {
|
||||
return navigateTo({ name: "update-credentials" })
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
@@ -47,7 +47,7 @@ import { computed } from "vue"
|
||||
import { useAuthStore } from "../stores/auth"
|
||||
|
||||
definePageMeta({
|
||||
middleware: "auth",
|
||||
middleware: ["auth", "self-hosted-credentials"],
|
||||
})
|
||||
|
||||
useOpnSeoMeta({
|
||||
|
||||
Reference in New Issue
Block a user