From 127a703388b723b24194deb7534e9202f6ae552b Mon Sep 17 00:00:00 2001 From: Christoph Reiter <reiter.christoph@gmail.com> Date: Thu, 21 Jan 2021 11:36:09 +0100 Subject: [PATCH] Make watch work with all app environments We have to force the base path in that case so the dev server can handle it. --- rollup.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rollup.config.js b/rollup.config.js index f718c0c..068ad4a 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -58,6 +58,10 @@ if (config.nextcloudBaseURL) { config.nextcloudWebDavURL = ''; } +if (watch) { + config.basePath = '/dist/'; +} + function getOrigin(url) { if (url) return new URL(url).origin; -- GitLab