-
Notifications
You must be signed in to change notification settings - Fork 73
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
Load Static Site without the baseUrl
or DJANGO_VITE_STATIC_URL_PREFIX
in the URL
#47
Comments
Here are configs for reference: Django
Vite
|
philiplee15
changed the title
Load Static Site without the
Load Static Site without the Jun 21, 2022
baseUrl
and DJANGO_VITE_STATIC_URL_PREFIX
in the Django endpointbaseUrl
or DJANGO_VITE_STATIC_URL_PREFIX
in the URL
Hi, |
Same problem for me. Is there any solution to that ? |
Stukcstuck on the same problem, any solutions? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I seem to be stuck in a loop of whack a mole game where I set
baseUrl == '/'
andDJANGO_VITE_STATIC_URL_PREFIX = "static/internal_tools/"
because I want the Django endpoint shown in the browser to be relative to "/" and not theSTATIC_URL
(for example localhost:8000, or example.com/ but it keeps redirecting me to either the{DJANGO_VITE_STATIC_URL_PREFIX }/actual/url
(http://localhost:8000/static/internal_tools/internal/customer-success) or unable to load the assets. I want it to just behttp://localhost:8000/internal/customer-success
.Any tips on this? I have tried many different iterations of the above configs but have been stuck on this for a while now.
The text was updated successfully, but these errors were encountered: