Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated react.md to fix a file path error in example code #1132

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
5 changes: 3 additions & 2 deletions runtime/tutorials/how_to_with_npm/react.md
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,9 @@ out about each one.
At this point the app is being served by the Vite development server. To serve
the app in production, you can build the app with Vite and then serve the built
files with Deno. To do so we'll need to update the api server to serve the built
files. We'll write some middleware to do this. In your `api` directory create a
new file called `routeStaticFilesFrom.ts` and add the following code:
files. We'll write some middleware to do this. In your `api` directory create a
`util` folder. Inside this folder, create a new file called `routeStaticFilesFrom.ts`
and add the following code:

```ts title="routeStaticFilesFrom.ts"
import { Next } from "jsr:@oak/oak/middleware";
Expand Down
Loading