Skip to content

Commit

Permalink
Update backend-integration.md
Browse files Browse the repository at this point in the history
  • Loading branch information
katsu223 committed Jan 12, 2022
1 parent 669d7e0 commit e158454
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/guide/backend-integration.md
Expand Up @@ -26,7 +26,9 @@ If you need a custom integration, you can follow the steps in this guide to conf

```js
// add the beginning of your app entry
import 'vite/modulepreload-polyfill'
if (import.meta.env.MODE !== 'development') {
import('vite/modulepreload-polyfill')
}
```
2. For development, inject the following in your server's HTML template (substitute `http://localhost:3000` with the local URL Vite is running at):
Expand Down

0 comments on commit e158454

Please sign in to comment.