path to widgets

This commit is contained in:
gilesb 2024-03-09 17:00:44 +00:00
parent c7cd0468f1
commit 253011be7c
3 changed files with 4 additions and 1 deletions

View File

@ -95,3 +95,5 @@ RUN chmod a+x /usr/local/bin/*.sh /app/artisan \
EXPOSE 80 EXPOSE 80
RUN chmod -R 777 /app

View File

@ -166,6 +166,6 @@ useHead({
} }
return titleChunk ? `${titleChunk} - OpnForm` : 'OpnForm'; return titleChunk ? `${titleChunk} - OpnForm` : 'OpnForm';
}, },
script: [ { src: '/widgets/iframeResizer.contentWindow.min.js' } ] script: [ { src: `${useRuntimeConfig().public.appBaseUrl}widgets/iframeResizer.contentWindow.min.js` } ]
}) })
</script> </script>

View File

@ -3,6 +3,7 @@ export default {
public: { public: {
apiBase: process.env.NUXT_PUBLIC_API_BASE ||'', apiBase: process.env.NUXT_PUBLIC_API_BASE ||'',
appUrl: process.env.NUXT_PUBLIC_APP_URL || '', appUrl: process.env.NUXT_PUBLIC_APP_URL || '',
appBaseUrl: process.env.NUXT_APP_BASE_URL ||'/',
env: process.env.NUXT_PUBLIC_ENV || 'local', env: process.env.NUXT_PUBLIC_ENV || 'local',
hCaptchaSiteKey: process.env.NUXT_PUBLIC_H_CAPTCHA_SITE_KEY || null, hCaptchaSiteKey: process.env.NUXT_PUBLIC_H_CAPTCHA_SITE_KEY || null,
googleAnalyticsCode: process.env.NUXT_PUBLIC_GOOGLE_ANALYTICS_CODE || null, googleAnalyticsCode: process.env.NUXT_PUBLIC_GOOGLE_ANALYTICS_CODE || null,