Cleanup: remove explicit localhost:3333 and remove unnessesary if(dev) blocks

This commit is contained in:
mikiher 2024-10-14 13:30:17 +03:00
parent bf16681bea
commit 42616b59de
6 changed files with 5 additions and 23 deletions

View file

@ -56,11 +56,7 @@ 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}`
return `${this.$config.routerBasePath}/api/authors/${this.authorId}/image?token=${this.userToken}&ts=${this.updatedAt}`
}
},
methods: {