feat: add versioning support for assets and update version to 1.0.0
All checks were successful
Deploy / deploy (push) Successful in 12s
All checks were successful
Deploy / deploy (push) Successful in 12s
This commit is contained in:
5
src/config/version.ts
Normal file
5
src/config/version.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export const APP_VERSION = '1.0.0';
|
||||
|
||||
export function withVersion(url: string): string {
|
||||
return url.includes('?') ? `${url}&v=${APP_VERSION}` : `${url}?v=${APP_VERSION}`;
|
||||
}
|
||||
Reference in New Issue
Block a user