Skip to content

feat(redirect): add wildcard redirect support; spin sdk bump; CI test additions#12

Merged
vdice merged 6 commits intospinframework:mainfrom
adamreese:wildcard-redirects
Apr 9, 2025
Merged

feat(redirect): add wildcard redirect support; spin sdk bump; CI test additions#12
vdice merged 6 commits intospinframework:mainfrom
adamreese:wildcard-redirects

Conversation

@adamreese
Copy link
Copy Markdown
Collaborator

Supersedes #11

vdice and others added 2 commits April 7, 2025 17:30
…ect support

Signed-off-by: Vaughn Dice <vaughn.dice@fermyon.com>
Signed-off-by: Adam Reese <adam@reese.io>
@vdice
Copy link
Copy Markdown
Contributor

vdice commented Apr 8, 2025

Will add tests to redirect_test.go shortly...

vdice added 3 commits April 8, 2025 15:51
Signed-off-by: Vaughn Dice <vaughn.dice@fermyon.com>
Signed-off-by: Vaughn Dice <vaughn.dice@fermyon.com>
Signed-off-by: Vaughn Dice <vaughn.dice@fermyon.com>
@vdice vdice force-pushed the wildcard-redirects branch from 7bc798c to 0b1e2f8 Compare April 8, 2025 23:07
@vdice
Copy link
Copy Markdown
Contributor

vdice commented Apr 8, 2025

Ok, this turned into a smorgasbord blend of new functionality (wildcard redirect support) and project refreshers needed/motivated by the added unit tests (sdk update, re-org to support testing, ci test additions). Hoping not too onerous to review all together.

@vdice vdice requested review from ThorstenHans and itowlson April 8, 2025 23:12
@vdice vdice changed the title feat(redirect): add include_path (and trim_prefix) for wildcard redirect support feat(redirect): add wildcard redirect support; spin sdk bump; CI test additions Apr 8, 2025
Copy link
Copy Markdown
Contributor

@itowlson itowlson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me - although my Go is very rusty so you may want a second opinion!

Comment thread main.go Outdated
spinhttp.Handle(r.HandleFunc)
}

func main() {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should no longer be needed for the component. Unless it's required for the tests or something?

Signed-off-by: Adam Reese <adam@reese.io>
@vdice vdice merged commit 5344ae8 into spinframework:main Apr 9, 2025
2 checks passed
@vdice vdice mentioned this pull request Apr 9, 2025
@kingdonb
Copy link
Copy Markdown
Contributor

I'm thrilled to try this out, I honestly wasn't looking forward to maintaining my own fork 🗡️ :D

Giving it a shot right now before it's too late to provide you all with pre-release feedback, tyvm

kingdonb added a commit to urmanac/urmanac-prod that referenced this pull request Apr 13, 2025
prerelease (our suggested changes for include_path got upstreamed in
fermyon/spin-redirect - now let's test them out and 💟 stamp them)

spinframework/spin-redirect#12

Signed-off-by: Kingdon B <kingdon@urmanac.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants