Skip to content

Commit c3dd61c

Browse files
committed
Fix Start Command & README
1 parent 969b478 commit c3dd61c

File tree

2 files changed

+12
-23
lines changed

2 files changed

+12
-23
lines changed

README.md

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,20 @@
1-
# React Router + Telefunc
1+
# React Router + Telefunc Template
22

3-
Warning : dev mode works, but builds still fail at the moment.
3+
A template for setting up [Telefunc](https://github.com/brillout/telefunc) on React-Router.
44

5-
## Getting Started
5+
Telefunc introduces Remote Functions instead of APIs. Streamlining backend interactions significantly.
66

7-
### Installation
87

9-
Install the dependencies:
8+
## Getting Started
109

1110
```bash
12-
npm install
13-
```
11+
npm install # Install the dependencies:
1412

15-
### Development
13+
npm run dev # Start the development server with HMR
14+
# Your application will be available at http://localhost:5173
1615

17-
Start the development server with HMR:
18-
19-
```bash
20-
npm run dev
16+
npm run build # Build for production
17+
npm run start # Start the production build
2118
```
2219

23-
Your application will be available at `http://localhost:5173`.
24-
25-
## Building for Production
26-
27-
Create a production build:
28-
29-
```bash
30-
npm run build
31-
```
20+
Special thanks to @brillout for creating [Telefunc](https://github.com/brillout/telefunc) and troubleshooting the build issues.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scripts": {
66
"build": "react-router build",
77
"dev": "react-router dev",
8-
"start": "react-router-serve ./build/server/index.js",
8+
"start": "react-router-serve ./build/server/index2.js",
99
"typecheck": "react-router typegen && tsc"
1010
},
1111
"dependencies": {
@@ -30,4 +30,4 @@
3030
"typescript": "^5.8.3",
3131
"vite-tsconfig-paths": "^5.1.4"
3232
}
33-
}
33+
}

0 commit comments

Comments
 (0)