From ebbcbef6d5d9e6b80bbf367662e69e82d770bf31 Mon Sep 17 00:00:00 2001 From: Phillip Thelen Date: Thu, 12 Jun 2025 17:24:24 +0200 Subject: [PATCH] Fix deploying static files to S3 (#15450) * upload all image types to s3 * fix __dirname not existing --- website/client/src/router/index.js | 2 +- website/client/vite.config.mjs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/website/client/src/router/index.js b/website/client/src/router/index.js index cbb0efa1ce..5c02b358d5 100644 --- a/website/client/src/router/index.js +++ b/website/client/src/router/index.js @@ -69,7 +69,7 @@ Vue.use(VueRouter); const router = new VueRouter({ mode: 'history', - base: process.env.NODE_ENV === 'production' ? '/' : __dirname, // eslint-disable-line no-process-env + base: '/', linkActiveClass: 'active', // When navigating to another route always scroll to the top // To customize the behavior see https://router.vuejs.org/en/advanced/scroll-behavior.html diff --git a/website/client/vite.config.mjs b/website/client/vite.config.mjs index 5044140053..c67a085fbf 100644 --- a/website/client/vite.config.mjs +++ b/website/client/vite.config.mjs @@ -85,7 +85,7 @@ export default defineConfig({ } }), ViteS3(ENABLE_S3, { - include: [/\.png$/], + include: [/.*\.(png|jpg|jpeg|gif|svg|webp|ico)/], basePath: nconf.get('S3_BASE_PATH'), clientConfig: { credentials: {