File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed
Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change 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+ ```
You can’t perform that action at this time.
0 commit comments