From ff4ebfbd5ffc6066f095591c9c0f1f8f7683fca3 Mon Sep 17 00:00:00 2001 From: gilesb Date: Sat, 9 Mar 2024 20:55:01 +0000 Subject: [PATCH] .. --- client/app.vue | 2 +- client/components/pages/welcome/Features.vue | 6 +++--- client/error.vue | 2 +- client/pages/forms/[slug]/index.vue | 4 ---- client/runtimeConfig.js | 1 - 5 files changed, 5 insertions(+), 10 deletions(-) diff --git a/client/app.vue b/client/app.vue index 8762056..c8290b2 100644 --- a/client/app.vue +++ b/client/app.vue @@ -48,7 +48,7 @@ export default { useOpnSeoMeta({ title: 'OpnForm', description: 'Create beautiful forms for free. Unlimited fields, unlimited submissions. It\'s free and it takes less than 1 minute to create your first form.', - ogImage: '/img/social-preview.jpg', + ogImage: `${useRuntimeConfig().public.appUrl}/img/social-preview.jpg`, robots: () => { return config.public.env === 'production' ? null : 'noindex, nofollow' } diff --git a/client/components/pages/welcome/Features.vue b/client/components/pages/welcome/Features.vue index 0e24601..f90e13e 100644 --- a/client/components/pages/welcome/Features.vue +++ b/client/components/pages/welcome/Features.vue @@ -20,7 +20,7 @@ 'Build a simple form in minutes.', 'No coding needed.' ], - img: '/img/pages/welcome/step-1.jpg' + img: `${useRuntimeConfig().public.appUrl}/img/pages/welcome/step-1.jpg` }, { title: 'Share', @@ -29,7 +29,7 @@ 'Share the link to your form', 'Embed the form on your website' ], - img: '/img/pages/welcome/step-2.jpg' + img: `/img/pages/welcome/step-2.jpg` }, { title: 'Get Results', @@ -39,7 +39,7 @@ 'Easily export submissions as CSV', 'Views & Submissions Analytics' ], - img: '/img/pages/welcome/step-3.jpg' + img: `/img/pages/welcome/step-3.jpg` } ]" :key="step.title">
diff --git a/client/error.vue b/client/error.vue index e77a954..d141112 100644 --- a/client/error.vue +++ b/client/error.vue @@ -3,7 +3,7 @@
- +

Page Not Found diff --git a/client/pages/forms/[slug]/index.vue b/client/pages/forms/[slug]/index.vue index a856b11..a9342f3 100644 --- a/client/pages/forms/[slug]/index.vue +++ b/client/pages/forms/[slug]/index.vue @@ -158,10 +158,6 @@ useOpnSeoMeta({ return (form && form.value?.can_be_indexed) ? null : 'noindex, nofollow' } }) -console.log(`app url is', ${useRuntimeConfig().public.appBaseUrl}`); -console.log( - useRuntimeConfig().public -) useHead({ titleTemplate: (titleChunk) => { if (form && form.value?.is_pro && form.value?.seo_meta.page_title) { diff --git a/client/runtimeConfig.js b/client/runtimeConfig.js index d0c1ba6..8c91c58 100644 --- a/client/runtimeConfig.js +++ b/client/runtimeConfig.js @@ -3,7 +3,6 @@ export default { public: { apiBase: process.env.NUXT_PUBLIC_API_BASE ||'', appUrl: process.env.NUXT_PUBLIC_APP_URL || '', - try: process.env.NUXT_TRY, env: process.env.NUXT_PUBLIC_ENV || 'local', hCaptchaSiteKey: process.env.NUXT_PUBLIC_H_CAPTCHA_SITE_KEY || null, googleAnalyticsCode: process.env.NUXT_PUBLIC_GOOGLE_ANALYTICS_CODE || null,