-
Notifications
You must be signed in to change notification settings - Fork 68
Make build independent of base url #31
Comments
c04c4d7#diff-1d7ff4f413e8862d32dfe18796e76517d15cdb33a09e11ce2dc65c07c11df1f6R48 appears to have introduced this issue. Edit: commenting the line out doesn't help. It still adds absolute paths to the minified result. |
I deploy by dropping the The problem is that you'll need to rewrite all URLs to serve the base |
Would it be easy to restore the arcbtc/nostr behavior so I can try to then fix what you describe in other ways? The JS should be trivially able to figure out its base path and use it dynamically from there. "do rewrite in Caddy or nginx" is just adding complexity that would be nice to strip away so more people drop it onto their servers/blogs/websites. |
I don't understand what you're saying. I don't understand the error you're facing. I don't understand what is the behavior you want me to restore. I don't know how arcbtc/nostr worked. I'm telling you it works by just deploying the files to a static file server. The nginx rewrite part is a detail and not necessary. If it is not working to just deploy the files, please tell me what is not working. I don't understand the logs you posted on the first message. If I had to guess I would say they are caused by a caching issue. |
I have a website, so obviously that website has an index.html in its root folder that gets used if you navigate to website.com/. I now want to deploy nostr to website.com/nostr/ but the generated index.html includes Edit: You said it's clear but here is anyway what I did:
Now, surfing to
With arcbtc/nostr it just worked. |
It is clear now. |
Deploying the built files to anything but the root folder breaks links.
Expected behaviour: Easy deployment in existing server by dropping the compiled files into some sub folder of my otherwise working website. This is how I had https://github.com/arcbtc/nostr deployed in no time.
Actual behaviour:
The text was updated successfully, but these errors were encountered: