Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix base URL #13

Merged
merged 4 commits into from
Nov 7, 2023
Merged

Fix base URL #13

merged 4 commits into from
Nov 7, 2023

Conversation

kubukoz
Copy link
Contributor

@kubukoz kubukoz commented Nov 7, 2023

This solves the problem mentioned in #12 (comment) by applying the workaround from disneystreaming/smithy4s#1245 (comment).

In addition, to avoid having to deal with multiple origins, I made the base URL start with /api for local development, and requests to that path will be proxied by Vite to the local backend. This removes the need to handle CORS.

Copy link

bundlemon bot commented Nov 7, 2023

BundleMon

Files updated (1)
Status Path Size Limits
assets/index-(hash).js
852.32KB (+409B +0.05%) +10%
Unchanged files (1)
Status Path Size Limits
index.html
318B -

Total files change +409B +0.05%

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

@daddykotex
Copy link
Owner

Thanks for the upgrade PR but also this bug fix. I've used the vite proxy feature internally, I don't know why I did not do it here.

@daddykotex daddykotex merged commit 7b67631 into daddykotex:main Nov 7, 2023
4 checks passed
@kubukoz kubukoz deleted the fix-base-url branch November 7, 2023 20:51
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.

2 participants