/hello-world/cover.webp

How About Use Urara?

Welcome to Urara! this article contains some basic operations to help you quickly get started.

Development

This template recommends using pnpm and @antfu/ni. start a development server:

bash
# http://localhost:3000
nr dev

or listen to different IP and port:

bash
# http://0.0.0.0:3000
nr dev --host 0.0.0.0
# http://0.0.0.0:8080
nr dev --host 0.0.0.0 --port 8080

Build

bash
nr build

or use the specified adapter:

bash
# Vercel
VERCEL=true nr build
# Cloudflare Pages
CF_PAGES=true nr build
# Netlify
NETLIFY=true nr build

This template uses @sveltejs/adapter-auto@next and @sveltejs/adapter-static@next by default.

when the environment supported by adapter-auto is not detected, it will automatically fallback to adapter-static.

u can modify it to any adapter supported by SvelteKit. see SvelteKit Docs

u can preview the built app with nr preview, regardless of whether u installed an adapter. This should not be used to serve ur app in production.

Misc

bash
nr clean # clean the files under /src/routes/**/ and /static/
nr check # code check
nr format # code prittier
nr lint # code lint