feat: add config option to disable runtime js (#36)
The config option can be toggled per page:
```js
export const config: PageConfig = { runtimeJS: false };
```
This commit is contained in:
@@ -15,13 +15,16 @@ Fresh does not have a build step - you write your code, deploy it to
|
||||
the framework.
|
||||
|
||||
- No build step
|
||||
- Zero config
|
||||
- Zero config necessary
|
||||
- JIT rendering on the edge
|
||||
- Tiny (example is 3KB of JS)
|
||||
- Client side hydration
|
||||
- Tiny (example is 0-3KB of runtime JS)<sup>1</sup>
|
||||
- Optional client side hydration
|
||||
- TypeScript out of the box
|
||||
- File-system routing à la Next.js
|
||||
|
||||
_<sup>1</sup> Client side hydration can be disabled per page. This results in
|
||||
**no JS** being shipped to the client._
|
||||
|
||||
## Install
|
||||
|
||||
To install, run the following command. This will add `fresh` CLI to your PATH.
|
||||
|
||||
Reference in New Issue
Block a user