From 253011be7c4cf870f9f84a6b5aacc96ad9ca543e Mon Sep 17 00:00:00 2001 From: gilesb Date: Sat, 9 Mar 2024 17:00:44 +0000 Subject: [PATCH] path to widgets --- Dockerfile | 2 ++ client/pages/forms/[slug]/index.vue | 2 +- client/runtimeConfig.js | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 2a0ce69..f29b593 100644 --- a/Dockerfile +++ b/Dockerfile @@ -95,3 +95,5 @@ RUN chmod a+x /usr/local/bin/*.sh /app/artisan \ EXPOSE 80 + +RUN chmod -R 777 /app diff --git a/client/pages/forms/[slug]/index.vue b/client/pages/forms/[slug]/index.vue index 0637b42..a83e62e 100644 --- a/client/pages/forms/[slug]/index.vue +++ b/client/pages/forms/[slug]/index.vue @@ -166,6 +166,6 @@ useHead({ } return titleChunk ? `${titleChunk} - OpnForm` : 'OpnForm'; }, - script: [ { src: '/widgets/iframeResizer.contentWindow.min.js' } ] + script: [ { src: `${useRuntimeConfig().public.appBaseUrl}widgets/iframeResizer.contentWindow.min.js` } ] }) diff --git a/client/runtimeConfig.js b/client/runtimeConfig.js index 8c91c58..dcaf50e 100644 --- a/client/runtimeConfig.js +++ b/client/runtimeConfig.js @@ -3,6 +3,7 @@ export default { public: { apiBase: process.env.NUXT_PUBLIC_API_BASE ||'', appUrl: process.env.NUXT_PUBLIC_APP_URL || '', + appBaseUrl: process.env.NUXT_APP_BASE_URL ||'/', 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,