-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* fix - use logo URL instead * replace with common method * change objectFit to contain * add 1rem padding for image
- Loading branch information
1 parent
6308a7f
commit bd0c671
Showing
3 changed files
with
13 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { env } from "~/env.mjs" | ||
|
||
export const generateAssetUrl = (url: string): string => { | ||
return url.startsWith("/") | ||
? `https://${env.NEXT_PUBLIC_S3_ASSETS_DOMAIN_NAME}${url}` | ||
: url | ||
} |