Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ install:
run:
SLP_BASE_URL=https://api.smartloop.ai npm run dev

# Dev server against an API running on localhost:8888
# Dev server against the API running locally: slp-api's `make supabase-dev`
run-local:
SLP_BASE_URL=http://localhost:8888 npm run dev
SLP_BASE_URL=http://127.0.0.1:55321/functions/v1/api npm run dev

# Build the static export into ./out
build:
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,12 @@ make run

`make run` starts a dev server at http://localhost:3000 against the production
API, so you can sign in with your own Smartloop account. To point it at an API
running on your machine, use `make run-local` (expects `localhost:8888`) or set
`SLP_BASE_URL` yourself:
running on your machine, start it with `make supabase-dev` in slp-api (it seeds
`dev@smartloop.local` and `admin@smartloop.local`, password `SmartloopDev1#`)
and use `make run-local`, or set `SLP_BASE_URL` yourself:

```sh
SLP_BASE_URL=http://localhost:8888 npm run dev
SLP_BASE_URL=http://127.0.0.1:55321/functions/v1/api npm run dev
```

| Command | What it does |
Expand Down
Loading
Loading