Learn how you can deploy a fully working SaaS template using Next.js & Rust.
npm i
to install the dependencies on the frontend.
Cargo.toml
level of your backend folder. Unset secrets will default
to “None” to prevent automatic crashing of the web service, but some services may not work.
dev
for Development:
npm run dev
to start your application with live reload capabilities. This script uses turbowatch
to
monitor changes in both the frontend and backend.http://localhost:8000
once the app has built.cargo-watch
instead of turbowatch
, the watch feature can be disabled in
the turbowatch.ts
file.next-dev
:
npm run next-dev
.analyze
:
analyze
script is designed to provide insights into the bundle size of your Next.js application.npm run analyze
to generate a detailed report of the size of each component and dependency in your bundle.--port <port-number>
to the shuttle run
command to change this.