make server url configurable in dev mode

This commit is contained in:
Frederik Kriewitz 2024-02-13 09:41:25 +01:00
parent 4e3e7b10ce
commit e641b319f7
5 changed files with 4 additions and 19 deletions

View file

@ -56,10 +56,6 @@ export default {
},
imgSrc() {
if (!this.imagePath) return null
if (process.env.NODE_ENV !== 'production') {
// Testing
return `http://localhost:3333${this.$config.routerBasePath}/api/authors/${this.authorId}/image?token=${this.userToken}&ts=${this.updatedAt}`
}
return `/api/authors/${this.authorId}/image?token=${this.userToken}&ts=${this.updatedAt}`
}
},