Skip to content

Commit

Permalink
chore(readme): updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
eidellev committed Aug 30, 2022
1 parent d5a656c commit 27ef114
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,9 @@ you will need to edit `webpack.ssr.config.js`.
Set it up as you have your regular encore config to
support your client-side framework of choice.

#### Adding an additional endpoint
#### Adding an additional entrypoint

Create a new entrypoint `resources/js/ssr.js` (or `ssr.ts` if you prefer to use Typescript).
Create a new entrypoint `resources/js/ssr.js` (or `ssr.ts`/`ssr.tsx` if you prefer to use Typescript).

Yous entrypoint code will depend on your client-side framework of choice:

Expand Down Expand Up @@ -263,6 +263,23 @@ node ace ssr:build
> to source control.
> To avoid it, please add the `inertia` directory to `.gitignore`.
#### Opting Out of SSR

Building isomorphic apps often comes with additional complexity.
In some cases you may prefer to render only certain public routes on the
server while letting the rest be rendered on the client.
Luckily you can easily opt out of SSR by configuring a list of components that
will rendered on the server, excluding all other components.

```typescript
{
ssr: {
enabled:true,
allowList: ['HomePage', 'Login']
}
}
```

### Authentication

AdonisJS provides us with powerful authentication and authorization APIs through
Expand Down

0 comments on commit 27ef114

Please sign in to comment.