<aside> <img src="/icons/zoom-in_red.svg" alt="/icons/zoom-in_red.svg" width="40px" /> 환경
https://www.rust-lang.org/tools/install
curl --proto '=https' --tlsv1.2 [<https://sh.rustup.rs>](<https://sh.rustup.rs/>) -sSf | sh
nextjs와 연동할 때 static export 형태로 세팅해야 된다고함. (서버 없어서)
nextjs 프로젝트 생성
pnpm create next-app --use-pnpm
static export 세팅
const nextConfig = {
output: 'export',
}
tauri cli 설치
pnpm add -D @tauri-apps/cli
tauri 프로젝트 setup
$ pnpm tauri init
✔ What is your app name? · resource-monitor
✔ What should the window title be? · resource-monitor
✔ Where are your web assets (HTML/CSS/JS) located, relative to the "<current dir>/src-tauri/tauri.conf.json" file that will be created? · ../out
✔ What is the url of your dev server? · <http://localhost:3000>
✔ What is your frontend dev command? · pnpm dev
✔ What is your frontend build command? · pnpm build
dev 모드 실행
pnpm tauri dev