Skip to content

Commit e5dd11c

Browse files
committed
removed experimental from devvit web
1 parent 2988932 commit e5dd11c

1 file changed

Lines changed: 19 additions & 18 deletions

File tree

versioned_docs/version-0.12/capabilities/devvit-web/devvit_web_overview.mdx

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import DevvitWebArch from '../../assets/devvit_web/devvit_web_arch.png';
1+
import DevvitWebArch from "../../assets/devvit_web/devvit_web_arch.png";
22

33
# Devvit Web
44

@@ -23,21 +23,19 @@ In addition, since you’re working with standard web technologies your apps sho
2323

2424
Visit [https://developers.reddit.com/new](https://developers.reddit.com/new) and choose one of our templates or take a look at the github repositories:
2525

26-
* [React](https://github.com/reddit/devvit-template-react)
27-
* [Phaser](https://github.com/reddit/devvit-template-phaser)
28-
* [Three.js](https://github.com/reddit/devvit-template-threejs)
29-
* [Hello World](https://github.com/reddit/devvit-template-hello-world)
26+
- [React](https://github.com/reddit/devvit-template-react)
27+
- [Phaser](https://github.com/reddit/devvit-template-phaser)
28+
- [Three.js](https://github.com/reddit/devvit-template-threejs)
29+
- [Hello World](https://github.com/reddit/devvit-template-hello-world)
3030

3131
## Limitations
3232

33-
As with most experimental features, there are some caveats.
34-
35-
| Limitation | What it means |
36-
| ------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
37-
| Serverless endpoints | The node server will run just long enough to execute your endpoint function and return a response, which means you can’t use packages that require long-running connections like streaming. |
33+
| Limitation | What it means |
34+
| ------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
35+
| Serverless endpoints | The node server will run just long enough to execute your endpoint function and return a response, which means you can’t use packages that require long-running connections like streaming. |
3836
| Package limitations | Developers cannot use `fs` or external native packages. For now, we recommend using external services over the native dependencies, such as [StreamPot](https://streampot.io/) (instead of ffmpeg) and [OpenAI](https://platform.openai.com/docs/guides/embeddings) (instead of @xenova/transformers) . |
39-
| Single request and single response handling only | Streaming or chunked responses and websockets are not supported. Long-polling is supported if it’s under the max request time. |
40-
| No external requests from your client | You can’t have any external requests other than the app's webview domain. All backend responses are locked down to the webview domain via CSP. (Your backend can make external fetch requests though.) |
37+
| Single request and single response handling only | Streaming or chunked responses and websockets are not supported. Long-polling is supported if it’s under the max request time. |
38+
| No external requests from your client | You can’t have any external requests other than the app's webview domain. All backend responses are locked down to the webview domain via CSP. (Your backend can make external fetch requests though.) |
4139

4240
Devvit Web still has the same technical requirements:
4341

@@ -47,7 +45,6 @@ Devvit Web still has the same technical requirements:
4745
- Max response size: 10MB
4846
- HTML/CSS/JS only
4947

50-
5148
## Devvit Web components
5249

5350
Devvit Web uses endpoints between the client and server to make communication similar to standard web apps. A Devvit Web app has three components:
@@ -59,10 +56,10 @@ Devvit Web uses endpoints between the client and server to make communication si
5956
Devvit Web templates all have the same file structure:
6057

6158
```tsx
62-
- src
63-
- client / // contains the webview code
64-
- server / // endpoints for the client
65-
- devvit.json; // the devvit config file
59+
-src -
60+
client / // contains the webview code
61+
-server / // endpoints for the client
62+
-devvit.json; // the devvit config file
6663
```
6764

6865
Now, instead of passing messages with postMessage (old way), you’ll define `/api/endpoints` (new way).
@@ -83,7 +80,11 @@ We also provide an authentication middleware so you don’t have to worry about
8380
All server endpoints must start with `/api/` (e.g. `/api/get-something` or `/api/widgets/42`).
8481
:::
8582

86-
<img src={DevvitWebArch} alt="devvit web architecture" style={{ maxWidth: '300px', display: 'block', margin: '0 auto' }} />
83+
<img
84+
src={DevvitWebArch}
85+
alt="devvit web architecture"
86+
style={{ maxWidth: "300px", display: "block", margin: "0 auto" }}
87+
/>
8788

8889
### Configuration in `devvit.json`
8990

0 commit comments

Comments
 (0)