Merge pull request #789 from shlinkio/develop

Release 3.9.1
This commit is contained in:
Alejandro Celaya 2022-12-31 18:22:38 +01:00 committed by GitHub
commit 4be38dfd0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 2 deletions

View file

@ -4,6 +4,23 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org). The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org).
## [3.9.1] - 2022-12-31
### Added
* *Nothing*
### Changed
* *Nothing*
### Deprecated
* *Nothing*
### Removed
* *Nothing*
### Fixed
* [#787](https://github.com/shlinkio/shlink-web-client/issues/787) Fixed wrong base path set in vite config when homepage is set as empty string.
## [3.9.0] - 2022-12-31 ## [3.9.0] - 2022-12-31
### Added ### Added
* [#750](https://github.com/shlinkio/shlink-web-client/issues/750) Added new icon indicators telling if a short URL can be normally visited, it received the max amount of visits, is still not enabled, etc. * [#750](https://github.com/shlinkio/shlink-web-client/issues/750) Added new icon indicators telling if a short URL can be normally visited, it received the max amount of visits, is still not enabled, etc.

View file

@ -4,7 +4,8 @@ import { VitePWA } from 'vite-plugin-pwa';
import { manifest } from './manifest'; import { manifest } from './manifest';
import pack from './package.json'; import pack from './package.json';
// https://vitejs.dev/config/ const homepage = pack.homepage?.trim();
export default defineConfig({ export default defineConfig({
plugins: [react(), VitePWA({ plugins: [react(), VitePWA({
mode: process.env.NODE_ENV === 'development' ? 'development' : 'production', mode: process.env.NODE_ENV === 'development' ? 'development' : 'production',
@ -21,5 +22,5 @@ export default defineConfig({
server: { server: {
port: 3000, port: 3000,
}, },
base: pack.homepage ?? '/', base: !homepage ? undefined : homepage, // Not using just homepage because empty string should be discarded
}); });