profile
viewpoint

Ask questionsDeploying my app to github pages

I made a small svelte app WITHOUT using sapper and I want to deploy it to github pages. I can’t find out how to do this anywhere. Only with sapper. I also tried to add it but it didn’t work. I already have it in a github repository but I just can’t figure out how to make it work with github pages (or anywhere else, like heroku etc). I used the svelte template as the base of my project. It’s a school project and I’m already past the deadline so asking on here is pretty much my last hope. Does maybe anyone know how I can do it? I’m also on windows so an linux solutions don’t work either.

Here’s my repo (please don’t mind the german texts): https://github.com/SvenjaJeschke/bs-online-konferenz-tools

sveltejs/svelte

Answer questions antony

Github issues isn't the right place for support questions, please use the chat.

Your svelte application is compiled to the public directory of your repository, so you either need to tell github pages to serve the contents of public, or change public to something else in rollup.config.js

useful!

Related questions

Javascript Interpolation in Styles via CSS Variables? hot 2
Svelte applications fail to load in IE 11. Similar loading issue with the main site svelte.dev hot 1
Uncaught TypeError: y.fragment.l is not a function hot 1
Increase elements when using a combination of await block and transition hot 1
Svelte applications fail to load in IE 11. Similar loading issue with the main site svelte.dev hot 1
Change body class via <svelte:body /> hot 1
Site: Svelte Cookbook/ Examples hot 1
Missing dependencies in svelte/compiler type definitions hot 1
Multiple components in one file - svelte hot 1
onMount Error: Function called outside component initialization hot 1
A way to see if slot prop is present hot 1
slot inside #if inside #each : TypeError cannot read property 'd' of null hot 1
unclear / difficult to import uuidv4 hot 1
Use <script type="application/ld+json"> in <svelte:head> hot 1
Error: 'default' is not exported when using babel + moment hot 1
Github User Rank List