Replies: 2 comments 8 replies
-
Oh interesting, yea our There are a couple of ways we could solve this. We could skip the Actually, as I type that, I realize that you could do that now! Our CLI has the
|
Beta Was this translation helpful? Give feedback.
-
I was asking myself the same question tonight, since I have to set I was wondering if @FredKSchott could chime in on my solution? What I'm doing is leveraging Here is part of my
The trick here is And the
Does that make sense? I wish I could have used something like Note that i'm using
You will want to update your Fred? Is it OK to rely on Thanks |
Beta Was this translation helpful? Give feedback.
-
I want to run my app in a subdirectory on my webserver, like
https://mydomain.com/subdirectory/
. It works when I use:But then my dev server breaks with the error message:
How can I make this work so that I can develop locally and that it also works when I make a production build?
I also tried to make the paths in
build/index.html
relative, and this works, and would actually be my preferred solution, since then the app can be deployed inside any subdirectory and it will work everywhere because that is what relative paths do. But every time I create a new build, thebuild/index.html
file is overwritten and I would need to make the manual changes again. Isn't there an option for Snowpack to make the paths in the build relative? That would be very handy.Beta Was this translation helpful? Give feedback.
All reactions