Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

Deployment to Github pages #214

Open
woctezuma opened this issue Jan 22, 2021 · 1 comment
Open

Deployment to Github pages #214

woctezuma opened this issue Jan 22, 2021 · 1 comment

Comments

@woctezuma
Copy link

woctezuma commented Jan 22, 2021

For info, I had some troubles deploying to Gihub pages, and the issue was solved relatively simply, but after a waste of a lot of time.

I did not realize that the index.html which I had came from this useful template.

In the HTML file, links start with '/', which means they are absolute:

<link rel='icon' type='image/png' href='/favicon.png'>
<link rel='stylesheet' href='/global.css'>
<link rel='stylesheet' href='/build/bundle.css'>
<script defer src='/build/bundle.js'></script>

Making the links relative solved my issue:

https://www.reddit.com/r/webdev/comments/gu07t8/deploying_my_svelte_app_to_github_pages/fsii05k/

@0gust1
Copy link

0gust1 commented Mar 31, 2021

I have a similar concern, deploying on a static blob storage. Could be a build option ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants