Skip to content
Open
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
2 changes: 1 addition & 1 deletion docs/guides/migrate/devvit-singleton.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Delete the `devvit.yaml` file from your project root. All configuration is now h

### 3. Handle static assets

If your app uses static assets (images, fonts, etc.) from an `assets` folder, you'll need to define this in update your `devvit.json` to point to these assets:
If your app uses static assets (images, fonts, etc.) from an `assets` folder, you'll need to update your `devvit.json` to point to these assets:

```json
{
Expand Down
4 changes: 1 addition & 3 deletions docs/guides/migrate/inline-web-view.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Apps can be partially migrated, you don't need to re-write everything!

- No postMessage required
- Use web native fetch() to server endpoints directly
- App logic is either on the client, or the server, with clear deliniation
- App logic is either on the client, or the server, with clear delineation
- Client effects are available directly from web views

## Setting up devvit.json
Expand Down Expand Up @@ -161,8 +161,6 @@ server.listen(port, () => console.log(`http://localhost:${port}`));

### Calling your server endpoints

Now

Instead of using `postMessage`, your client-side code can now directly fetch the initial state from the `/api/init` endpoint we defined in the server.

```ts title=/src/client/app.ts
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Delete the `devvit.yaml` file from your project root. All configuration is now h

### 3. Handle static assets

If your app uses static assets (images, fonts, etc.) from an `assets` folder, you'll need to define this in update your `devvit.json` to point to these assets:
If your app uses static assets (images, fonts, etc.) from an `assets` folder, you'll need to update your `devvit.json` to point to these assets:

```json
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Apps can be partially migrated, you don't need to re-write everything!

- No postMessage required
- Use web native fetch() to server endpoints directly
- App logic is either on the client, or the server, with clear deliniation
- App logic is either on the client, or the server, with clear delineation
- Client effects are available directly from web views

## Setting up devvit.json
Expand Down Expand Up @@ -161,8 +161,6 @@ server.listen(port, () => console.log(`http://localhost:${port}`));

### Calling your server endpoints

Now

Instead of using `postMessage`, your client-side code can now directly fetch the initial state from the `/api/init` endpoint we defined in the server.

```ts title=/src/client/app.ts
Expand Down
Loading