Skip to content

Commit 2b9fb40

Browse files
committed
Add Analog static site generator
1 parent aff6697 commit 2b9fb40

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

src/site/generators/analog.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
title: Analog
3+
repo: analogjs/analog
4+
homepage: https://analogjs.org/
5+
language:
6+
- TypeScript
7+
license:
8+
- MIT
9+
templates:
10+
- Angular
11+
description: Analog is a fullstack meta-framework for building applications and websites with Angular
12+
twitter: analogjs
13+
---
14+
15+
Analog is a fullstack meta-framework for building applications and websites with Angular, powered by Vite.
16+
17+
## Features
18+
19+
- Hybrid SSR/SSG support
20+
- File-based routing
21+
- Support for using markdown as content routes
22+
- Support for API/server routes
23+
24+
## Configuration
25+
26+
SSR and SSG can be enabled in the `vite.config.ts` using the `analog()` plugin.
27+
28+
```javascript
29+
import { defineConfig } from 'vite';
30+
import analog from '@analogjs/platform';
31+
32+
// https://vitejs.dev/config/
33+
export default defineConfig(({ mode }) => ({
34+
plugins: [analog({
35+
ssr: true, // enables server side rendering
36+
static: true, // enables static site generation
37+
prerender: { // configure routes to be rendered at build time
38+
routes: async () => [
39+
'/',
40+
'/about',
41+
'/blog',
42+
'/blog/posts/2023-02-01-my-first-post',
43+
],
44+
},
45+
})],
46+
}));
47+
```

0 commit comments

Comments
 (0)