Quantcast
Channel: Active questions tagged svelte - Stack Overflow
Viewing all articles
Browse latest Browse all 1751

How can I host a Svelte app in a subdirectory?

$
0
0

How can I host an exported Svelte project in a subdirectory on my domain? Imagine that example.com is my domain, how can I have src\routes\index.svelte correspond to https://example.com/subdir/?

When I upload the Svelte export to this subdirectory of the web server, it reads from the console that it cannot find https://example.com/service-worker.js among other files, which is true, because it's in the /subdir folder. But where can I set the base URL?


Viewing all articles
Browse latest Browse all 1751

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>