Svelte App in subdirectory
See original GitHub issueDescribe the bug The functions folder is not correctly resolved relative to firebase.json, when the Svelte app is placed in a subdirectory.
> ENOENT: no such file or directory, open 'functions/package.json'
The example in the README does not work. https://github.com/jthegedus/svelte-adapter-firebase/blob/main/README.md#adapter-configurations
To Reproduce
- Place the Svelte Kit application in subfolder, e.g.
svelte_app
. - Configure Svelte adapter
adapter: firebaseAdapter({ firebaseJson: "../firebase.json" }),
Expected behavior
package.json
should be looked for at ../functions/package.json
instead of functions/package.json
.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
How can I host a Svelte app in a subdirectory? - Stack Overflow
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/ ......
Read more >Hosting sveltekit app in a subdirectory : r/sveltejs - Reddit
I've got an app that I'd like to host in a subdirectory of my site (e.g. http://mysite.com/svelte-site/ ). However, when I place my...
Read more >Routing • Docs • SvelteKit
At the heart of SvelteKit is a filesystem-based router. The routes of your app — i.e. the URL paths that users can access...
Read more >Deployment and next steps - Learn web development | MDN
Objective: Learn how to prepare our Svelte app for production, and what learning ... Since our app will be published at a subdirectory...
Read more >SvelteKit
The page routes of a SvelteKit app are defined by files and directories inside ... Nested subdirectories under src/routes define routes at URL...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ah, yes, you’re correct. I am addressing this now treating the
firebase.json
as the root. Watch for the next release.If i remember correctly, the hosting deployment folder was resolved relative to the svelte project instead of relative to the firebase.json file.