Enable swr caching instead of prerenderign

This commit is contained in:
Julien Nahum 2024-01-08 22:34:21 +01:00
parent aba61b28d6
commit 26ca536e87
8 changed files with 8 additions and 8 deletions

View File

@ -500,7 +500,7 @@ useOpnSeoMeta({
description: 'Transform your ideas into fully functional forms with OpnForm AI Builder quick, accurate, and tailored to fit any requirement.'
})
defineRouteRules({
prerender: false
swr: 3600
})
let authenticated = computed(() => authStore.check)

View File

@ -200,7 +200,7 @@ export default {
setup() {
const authStore = useAuthStore()
defineRouteRules({
prerender: false
swr: 3600
})
return {

View File

@ -59,7 +59,7 @@ definePageMeta({
middleware: "guest"
})
defineRouteRules({
prerender: false
swr: 3600
})
useOpnSeoMeta({
title: 'Login'

View File

@ -73,7 +73,7 @@ export default {
})
defineRouteRules({
prerender: false
swr: 3600
})
},

View File

@ -203,7 +203,7 @@ import {fetchTemplate} from "~/stores/templates.js"
import FormTemplateModal from '~/components/open/forms/components/templates/FormTemplateModal.vue'
defineRouteRules({
prerender: false
swr: 3600
})
const { copy } = useClipboard()

View File

@ -23,7 +23,7 @@
import {loadAllTemplates} from "~/stores/templates.js";
defineRouteRules({
prerender: false
swr: 3600
})
useOpnSeoMeta({

View File

@ -46,7 +46,7 @@ import Breadcrumb from '~/components/global/Breadcrumb.vue'
import {loadAllTemplates} from "~/stores/templates.js";
defineRouteRules({
prerender: false
swr: 3600
})
const route = useRoute()

View File

@ -47,7 +47,7 @@ import Breadcrumb from '~/components/global/Breadcrumb.vue'
import {loadAllTemplates} from "~/stores/templates.js";
defineRouteRules({
prerender: false
swr: 3600
})
const route = useRoute()