Skip to content

How conciliate cargo loco start and pnpm dev #817

Answered by kaplanelad
geraldodev asked this question in Q&A
Discussion options

You must be logged in to vote

To run loco with pnpm dev without requiring a dist folder, you can follow these steps:

  1. Create a new project with the following selections:
❯ loco new
✔ ❯ App name? · test
✔ ❯ What would you like to build? · SaaS app (with DB and user auth)
✔ ❯ Select a DB Provider · Sqlite
✔ ❯ Select your background worker type · Async (in-process tokio async tasks)
✔ ❯ Select an asset serving configuration · Client (configures assets for frontend serving)
  1. Navigate to the frontend folder and install the dependencies:
cd ./test/frontend
pnpm install
  1. Open the test/frontend/rsbuild.config.ts file and ensure that the target API points to the correct loco server endpoint.
  2. Finally, run pnpm dev to start …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kaplanelad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants