Replies: 2 comments
-
Please use discussions and/or discord https://svelte.dev/chat for questions |
Beta Was this translation helpful? Give feedback.
0 replies
-
I had the same problem with my project with Sveltekit and adapter-static when uploading it on my IIS where I have several apps in other folders. What I did is place in svelte.config.js:
Where the base "/svelte" is the name of the folder where I saved the files generated by Sveltekit en IIS. It worked. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
Its not possible to run a SvelteKit SAP application in a subfolder of a web server like this:
Folder example:
wwwroot/project_folder
Url example:
http://mydomain.de/project_folder
Reproduction
npm init svelte@next my-app
@sveltejs/adapter-static
to the project and the sveltekit configurationconfig.kit.paths
npm run build
to create a production version of the projectmkdir wwwroot
my-app/build
folder into thewwwroot
wwwroot/build
folder tomy-app/project_folder
wwwroot
folder and start a web server byhttp-server
Problem is:
The router will not change the pages per Javascript. Instead a standard behaviour of the browser with a default page refresh (no javascript) from
/
to/blog
(for example) happens. The result is a 404 error because the page does not exist.Logs
No errors in log...
System Info
Severity
blocking all usage of SvelteKit
Additional Information
Question from my side:
hash
in URL like in Vue.js - hash-mode?wwwroot/project_folder
?The problem is ... only one webserver ( IIS ) is possible.
Therefore only working with sub folders is possible in our company.
Beta Was this translation helpful? Give feedback.
All reactions