Skip to content

Commit

Permalink
Fix shorturl (#22)
Browse files Browse the repository at this point in the history
* Use DOMAIN envar

* force tags to run in GH actions
  • Loading branch information
danielmichaels committed Jun 30, 2024
1 parent 7c53f29 commit 703d494
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: functions build and publish
on:
workflow_dispatch:
push:
tags:
- "*"
branches: [ "main" ]
pull_request:
branches:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Go
on:
push:
branches: [ main ]
tags:
- "*"
pull_request:
branches: [ main ]

Expand Down
2 changes: 1 addition & 1 deletion internal/data/links.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type Link struct {
// it is created on the fly so that if the underlying domain changes the links
// are not broken in the future.
func (l *Link) CreateShortLink() string {
return fmt.Sprintf("%s/%s", os.Getenv("FRONTEND_DOMAIN"), l.Hash)
return fmt.Sprintf("%s/%s", os.Getenv("DOMAIN"), l.Hash)
}

type LinkModel struct {
Expand Down

0 comments on commit 703d494

Please sign in to comment.