diff --git a/Development.md b/Development.md index dfb0741..4e8d28f 100644 --- a/Development.md +++ b/Development.md @@ -12,26 +12,29 @@ npm i ``` -Now, you can run various aspects of the project in development. - -> [!NOTE] -> Most of these commands require that you build the project beforehand. Changes in other packages do not reflect immediately as it needs to be compiled into JavaScript first. -> Run `npm run build` to build the project. To start the addon in development mode, run the following command: ``` -npm run start:addon:dev +npm run start:dev ``` -To run the cloudflare worker in development mode, run the following command +Only changes to the server package have hot reload, meaning no need to rebuild/restart. However, if you make a change in the core package, that needs to be rebuilt. ``` -npm run start:cloudflare-worker:dev +npm -w packages/core run build ``` -To run the frontend of the project, run the following command +The frontend requires itself to be connected to the server in order to function correctly, therefore for development purposes, set the `NEXT_PUBLIC_BACKEND_BASE_URL` environment variable to the currently running backend before running the dev command for the frontend. +**Bash**: ``` -npm run start:frontend:dev +NEXT_PUBLIC_BACKEND_BASE_URL=http://localhost:3000/api/v1 npm run start:frontend:dev ``` + +**PowerShell** (Windows): +``` +$Env:NEXT_PUBLIC_BACKEND_BASE_URL=http://localhost:3000/api/v1;npm run start:frontend:dev +``` + +