Skip to content

Commit

Permalink
docs: fix small typo in Environment API (#18090)
Browse files Browse the repository at this point in the history
  • Loading branch information
jay-es authored Sep 12, 2024
1 parent e503218 commit b897cb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/api-environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ export const runner = new ModuleRunner(
await runner.import('/entry.js')
```
::: warning Acessing Module on the Server
::: warning Accessing Module on the Server
We do not want to encourage communication between the server and the runner. One of the problems that was exposed with `vite.ssrLoadModule` is over-reliance on the server state inside the processed modules. This makes it harder to implement runtime-agnostic SSR since user environment might have no access to server APIs. For example, this code assumes that Vite server and user code can run in the same context:
```ts
Expand Down

0 comments on commit b897cb8

Please sign in to comment.