Relative path for assets (#340)

This commit is contained in:
Will Hunt 2022-05-06 17:03:28 +01:00 committed by GitHub
parent af054ef3bb
commit 46655f79d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

1
changelog.d/340.bugfix Normal file
View File

@ -0,0 +1 @@
Fix a bug where widgets would not load if hosted on a subpath (e.g. `/hookshot` instead of `/`)

View File

@ -5,7 +5,7 @@ import preact from '@preact/preset-vite'
export default defineConfig({
plugins: [preact()],
root: 'web',
base: '/widgetapi/v1/static/',
base: '',
build: {
outDir: '../public',
emptyOutDir: true,