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:3000nr dev
or listen to different IP and port:
bash
# http://0.0.0.0:3000nr dev --host 0.0.0.0# http://0.0.0.0:8080nr dev --host 0.0.0.0 --port 8080
Build
bash
nr build
or use the specified adapter:
bash
# VercelVERCEL=true nr build# Cloudflare PagesCF_PAGES=true nr build# NetlifyNETLIFY=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 checknr format # code prittiernr lint # code lint