Using
Based off https://github.com/metonym/sveltekit-gh-pages
svelte.config.js
to match repository name.const yourRepoName = 'svelte-tailwind-ghpages-template';
npm i
).npm run dev
.npm run deploy
.build/
and pushes that folder into the branch gh-pages
.npm run preview
, make sure to add your repo to the path.localhost:3000/your-repo-name
.static/
, prepend url with {base}
.import { base } from '$app/paths';
at top of script.