Add client linting to GitHub Actions workflow
Enhance CI/CD pipeline by introducing a new job to run ESLint on the client application. This ensures code quality and consistency for the frontend codebase.
This commit is contained in:
2
client/middleware/custom-domain.global.js
vendored
2
client/middleware/custom-domain.global.js
vendored
@@ -32,8 +32,6 @@ function redirectToMainDomain(details = {}) {
|
||||
export default defineNuxtRouteMiddleware((to) => {
|
||||
if (!customDomainUsed()) return
|
||||
|
||||
const config = useRuntimeConfig()
|
||||
|
||||
const customDomainHeaderValue = useRequestHeaders()[customDomainHeaderName]
|
||||
if (
|
||||
import.meta.server &&
|
||||
|
||||
1
client/middleware/self-hosted-credentials.js
vendored
1
client/middleware/self-hosted-credentials.js
vendored
@@ -1,6 +1,5 @@
|
||||
export default defineNuxtRouteMiddleware(() => {
|
||||
const authStore = useAuthStore()
|
||||
const runtimeConfig = useRuntimeConfig()
|
||||
|
||||
if (useFeatureFlag('self_hosted')) {
|
||||
if (authStore.check && authStore.user?.email === 'admin@opnform.com') {
|
||||
|
||||
Reference in New Issue
Block a user