Skip to content

Commit 027889f

Browse files
authored
Fix incorrect port number in "Building Your First Activity in Discord" guide (#7750)
* Update building-an-activity.mdx * Update port numbers
1 parent d928247 commit 027889f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/activities/building-an-activity.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ npm install
8888
npm run dev
8989
```
9090

91-
If you visit http://localhost:3000/ you should see a vanilla JS frontend template running with [Vite](https://vitejs.dev/).
91+
If you visit http://localhost:5173/ you should see a vanilla JS frontend template running with [Vite](https://vitejs.dev/).
9292

9393
While it's not much at the moment, in the following steps we'll connect it to the backend services, make it runnable in Discord, and power it up by populating it with data we pull from Discord APIs.
9494

@@ -278,7 +278,7 @@ Your app should start and you should see output similar to the following:
278278
```
279279
VITE v5.0.12 ready in 100 ms
280280

281-
➜ Local: http://localhost:3000/
281+
➜ Local: http://localhost:5173/
282282
➜ Network: use --host to expose
283283
➜ press h + enter to show help
284284
```
@@ -289,10 +289,10 @@ We'll use the Local URL as our publicly-accessible URL in the next step.
289289
290290
Next, we'll need to set up the public endpoint that serves the Activity's frontend. To do that, we'll create a tunnel with a reverse proxy. While we'll be using [`cloudflared`](https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/) in this guide, you can use [ngrok](https://ngrok.com/docs) or another reverse proxy solution if you prefer.
291291
292-
While your app is still running, open another terminal window and start a network tunnel that listens to the port from the last step (in this case, port `3000`):
292+
While your app is still running, open another terminal window and start a network tunnel that listens to the port from the last step (in this case, port `5173`):
293293
294294
```
295-
cloudflared tunnel --url http://localhost:3000
295+
cloudflared tunnel --url http://localhost:5173
296296
```
297297
298298
When you run `cloudflared`, the tunnel will generate a public URL and you'll see output similar to the following:

0 commit comments

Comments
 (0)