Skip to content

Commit

Permalink
Merge pull request #789 from shlinkio/develop
Browse files Browse the repository at this point in the history
Release 3.9.1
  • Loading branch information
acelaya committed Dec 31, 2022
2 parents 5db0326 + 597f2b6 commit 4be38df
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Expand Up @@ -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).

## [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
### 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.
Expand Down
5 changes: 3 additions & 2 deletions vite.config.ts
Expand Up @@ -4,7 +4,8 @@ import { VitePWA } from 'vite-plugin-pwa';
import { manifest } from './manifest';
import pack from './package.json';

// https://vitejs.dev/config/
const homepage = pack.homepage?.trim();

export default defineConfig({
plugins: [react(), VitePWA({
mode: process.env.NODE_ENV === 'development' ? 'development' : 'production',
Expand All @@ -21,5 +22,5 @@ export default defineConfig({
server: {
port: 3000,
},
base: pack.homepage ?? '/',
base: !homepage ? undefined : homepage, // Not using just homepage because empty string should be discarded
});

0 comments on commit 4be38df

Please sign in to comment.