Beautiful Open-Source Form Builder
Added sitemap on nuxt side
Julien Nahumdb57793932ea
diff --git a/client/nuxt.config.ts b/client/nuxt.config.tsindex b8203e291..7e6b70d55 100644--- a/client/nuxt.config.ts+++ b/client/nuxt.config.ts@@ -3,6 +3,9 @@ import opnformConfig from "./opnform.config";import sitemap from "./sitemap";export default defineNuxtConfig({+ site: {+ url: opnformConfig.app_url+ },devtools: {enabled: true},css: ['~/scss/app.scss'],modules: [@@ -13,6 +16,9 @@ export default defineNuxtConfig({'nuxt-simple-sitemap',// ... opnformConfig.sentry_dsn ? ['@nuxtjs/sentry'] : [],],+ build: {+ transpile: ["vue-notion"],+ },postcss: {plugins: {'postcss-import': {},diff --git a/client/opnform.config.js b/client/opnform.config.jsindex cdf38110a..488bd3f98 100644--- a/client/opnform.config.js+++ b/client/opnform.config.js@@ -1,6 +1,6 @@export default {"app_ame": "OpnForm",- "app_url": "https://opnform.test",+ "app_url": "http://localhost:3000/","api_url": "https://opnform.test/api","locale": "en","locales": {"en": "EN"},diff --git a/client/package.json b/client/package.jsonindex 784ef3790..4cd7f53e1 100644--- a/client/package.json+++ b/client/package.json@@ -3,9 +3,9 @@"private": true,"type": "module","scripts": {- "build": "nuxt build",+ "build": "export NODE_TLS_REJECT_UNAUTHORIZED=0; nuxt build","dev": "export NODE_TLS_REJECT_UNAUTHORIZED=0; nuxt dev",- "generate": "nuxt generate",+ "generate": "export NODE_TLS_REJECT_UNAUTHORIZED=0; nuxt generate","preview": "nuxt preview","postinstall": "nuxt prepare"},diff --git a/client/pages/integrations.vue b/client/pages/integrations.vuedeleted file mode 100644index f5da0641c..000000000--- a/client/pages/integrations.vue+++ /dev/null@@ -1,35 +0,0 @@-<template>- <div>- <div class="mt-6 flex flex-col">- <div class="w-full md:max-w-3xl md:mx-auto px-4 md:pt-16">- <h1 class="sm:text-5xl mb-4">- Integrations- </h1>- <NotionPage :block-map="blockMap" :loading="loading" />- </div>- </div>- <open-form-footer/>- </div>-</template>--<script setup>-// metaTitle: { type: String, default: 'Integrations' },-// metaDescription: { type: String, default: 'You can connect your OpnForms to other services via our two integrations: Zapier and Webhooks. Use our integrations to automate your various workflows.' }--import {useNotionPagesStore} from "~/stores/notion_pages.js";-import {computed} from "vue";--const notionPageStore = useNotionPagesStore()-await notionPageStore.load('492c2bbb31404481b9faaaf407e59640')--const loading = computed(() => notionPageStore.loading)-const blockMap = computed(() => notionPageStore.getByKey('492c2bbb31404481b9faaaf407e59640'))-</script>--<style lang="scss">-.integration-page {- .notion-asset-wrapper {- max-width: 200px;- }-}-</style>diff --git a/client/sitemap.js b/client/sitemap.jsindex 3546d2054..d5dc2157e 100644--- a/client/sitemap.js+++ b/client/sitemap.js@@ -1,4 +1,10 @@++import opnformConfig from "../opnform.config.js";export default {// exclude all URLs that start with /secretexclude: ['/settings/**', '/subscriptions/**', '/templates/my-templates'],+ sources: [+ opnformConfig.api_url + '/sitemap-urls'+ ],+ cacheMaxAgeSeconds: 3600}diff --git a/client/stores/auth.js b/client/stores/auth.jsindex c0ef47709..52472e46f 100644--- a/client/stores/auth.js+++ b/client/stores/auth.js@@ -48,7 +48,7 @@ export const useAuthStore = defineStore('auth', {setUser(user) {if (!user) {- console.error('Error.setting.user')+ console.error('No user, logging out.')this.setToken(null)}