Last active
October 20, 2023 20:51
-
-
Save Vaisakhkm2625/ba1ff2503f1b2748a010f42837675d7f to your computer and use it in GitHub Desktop.
host sveltekit in github pages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
npm i -D @sveltejs/adapter-static | |
``` | |
``` | |
echo "export const prerender = true;" >> ./src/routes/+layout.js | |
``` | |
change | |
``` | |
"build": "vite build", | |
``` | |
to | |
``` | |
"build": "vite build && rm ./docs/* -rf && cp ./build/. ./docs -r", | |
``` | |
``` | |
touch static/.nojekyll | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment