diff --git a/client/nuxt.config.ts b/client/nuxt.config.ts index b8203e2..7e6b70d 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.js index cdf3811..488bd3f 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.json index 784ef37..4cd7f53 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.vue deleted file mode 100644 index f5da064..0000000 --- a/client/pages/integrations.vue +++ /dev/null @@ -1,35 +0,0 @@ - - - - - diff --git a/client/sitemap.js b/client/sitemap.js index 3546d20..d5dc215 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 /secret exclude: ['/settings/**', '/subscriptions/**', '/templates/my-templates'], + sources: [ + opnformConfig.api_url + '/sitemap-urls' + ], + cacheMaxAgeSeconds: 3600 } diff --git a/client/stores/auth.js b/client/stores/auth.js index c0ef477..52472e4 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) }