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,