My personal landing page at kre3.net. Using Svelte 5 & SvelteKit.
- node === 24.13.1 (higher minor version is OK, higher major version might be OK due to backwards compatibility)
- pnpm === 10.33.0 (or higher)
-
run
git clone https://github.com/ohmykreee/kre3-landingto clone the whole project, -
run
pnpm i --ignore-scriptsto install all the deps, -
copy
src/lib/config/example.tstosrc/lib/config/default/default.ts, and change to your own info,
BE CAUTIOUS that you must make default.ts's structure correct, or DO NOT leave default.ts empty, or the site will not work. (the _loader.ts will first try to load default.ts then example.ts when it isn't exist.)
-
change the code the config file not covered and happy hacking,
-
pnpm dev --host=0.0.0.0to run a dev server binding 0.0.0.0,pnpm lintto do lint and format check,pnpm formatto use prettier to format,pnpm buildto generate static site file tobuildcasue it's a SSG project.
The workflows files here do cloning your config file from a repo and do a pnpm lint first, when no error present then do pnpm build and publish static file to Cloudflare Pages.
- To clone your config file from your repo, you should provide
CONFIG_REPO_URLin your "Actions secrets and variables". If your repo is private, you need to : 1. Create a new SSH key pair, 2. Put the public key in the private repo's Deploy keys, 3. Put the private key in this repo's Actions secretsPRIVATE_SSH_KEY. (If you use private repo, theCONFIG_REPO_URLshould use this format:git@github.com:USERNAME/REPO_NAME.git) - To publish static file to Cloudflare Pages, you should provide secrets
CLOUDFLARE_API_TOKENandCLOUDFLARE_ACCOUNT_ID, and envCLOUDFLARE_PROJECT_NAME.
- Code: Released under the MIT license.
- Assets & Branding: All Rights Reserved. This includes logos, graphics, and design files which may not be reused or redistributed without permission.