Skip to content

kwchang0831/urara.kwchang0831.dev

Repository files navigation

HEADER

Github Workflow https://img.shields.io/github/license/kwchang0831/kwchang0831.dev Netlify Status FOSSA Status

PageSpeed Insight

PAGESPEED

Requirements

  • Install Nodejs @latest
# Ubuntu
sudo apt install nodejs
# Windows
sudo choco install nodejs
# asdf
asdf install nodejs latest
asdf global nodejs latest
  • pnpm
npm install -g pnpm

Local Run

Install deps

pnpm i

Run dev server @ localhost:3000

pnpm dev

! For Windows' Users

Modify package.json, use set instead of export for all places appropriate.

-   "dev:kit": "export NODE_OPTIONS='--max_old_space_size=20480' && MODE=development svelte-kit dev --host",
+   "dev:kit": "set NODE_OPTIONS='--max_old_space_size=20480' && MODE=development svelte-kit dev --host",

Or, you may consider using cross-env from kentcdodds/cross-env ( NPM: cross-env ).

Local Build

pnpm build
pnpm preview

Create & Build & Deploy onto Netlify

Create / Link existing site

netlify sites:create

or

netlify link

Local Build for Netlify

netlify build

Deploy

netlify deploy
netlify deploy --prod

Powered by

Hosted on

Useful Links

License

FOSSA Status